summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-01-13 09:22:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-01-14 17:24:48 +0000
commit79752f9a37a002871806a8ca85488b9eda0302af (patch)
tree382df040f78356cf387d0b8b4fba4f65bc61945c
parent7666648ab2f420caafa6739cc5bb41d5cc04bf91 (diff)
XUnoTunnel->dynamic_cast in Transformer
Change-Id: Ief186ab88bfe6f952e2e09351fdaa8e0e8a2b6be Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145503 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--xmloff/source/transform/OOo2Oasis.cxx12
-rw-r--r--xmloff/source/transform/OOo2Oasis.hxx4
-rw-r--r--xmloff/source/transform/Oasis2OOo.cxx12
-rw-r--r--xmloff/source/transform/Oasis2OOo.hxx4
-rw-r--r--xmloff/source/transform/Transformer.hxx4
5 files changed, 1 insertions, 35 deletions
diff --git a/xmloff/source/transform/OOo2Oasis.cxx b/xmloff/source/transform/OOo2Oasis.cxx
index 38ff3384a40b..a11baa98a8e9 100644
--- a/xmloff/source/transform/OOo2Oasis.cxx
+++ b/xmloff/source/transform/OOo2Oasis.cxx
@@ -1950,18 +1950,6 @@ void OOo2OasisTransformer::Initialize(
}
}
-const css::uno::Sequence<sal_Int8>& OOo2OasisTransformer::getUnoTunnelId() noexcept
-{
- static const comphelper::UnoIdInit theOOo2OasisTransformerUnoTunnelId;
- return theOOo2OasisTransformerUnoTunnelId.getSeq();
-}
-
-// XUnoTunnel
-sal_Int64 SAL_CALL OOo2OasisTransformer::getSomething( const Sequence< sal_Int8 >& rId )
-{
- return comphelper::getSomethingImpl(rId, this);
-}
-
// XServiceInfo
OUString SAL_CALL OOo2OasisTransformer::getImplementationName()
{
diff --git a/xmloff/source/transform/OOo2Oasis.hxx b/xmloff/source/transform/OOo2Oasis.hxx
index 01c5d72b38c3..3d7fb89c524c 100644
--- a/xmloff/source/transform/OOo2Oasis.hxx
+++ b/xmloff/source/transform/OOo2Oasis.hxx
@@ -77,10 +77,6 @@ public:
// XTypeProvider
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
- // XUnoTunnel
- static const css::uno::Sequence<sal_Int8>& getUnoTunnelId() noexcept;
- virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) override;
-
// XImporter
virtual void SAL_CALL setTargetDocument( const css::uno::Reference< css::lang::XComponent >& xDoc ) override;
diff --git a/xmloff/source/transform/Oasis2OOo.cxx b/xmloff/source/transform/Oasis2OOo.cxx
index 7a74d2ab4f61..4f32bf894137 100644
--- a/xmloff/source/transform/Oasis2OOo.cxx
+++ b/xmloff/source/transform/Oasis2OOo.cxx
@@ -1943,18 +1943,6 @@ Oasis2OOoTransformer::~Oasis2OOoTransformer() noexcept
XMLEventOASISTransformerContext::FlushEventMap( m_pFormEventMap );
}
-const css::uno::Sequence<sal_Int8>& Oasis2OOoTransformer::getUnoTunnelId() noexcept
-{
- static const class comphelper::UnoIdInit theOasis2OOoTransformerUnoTunnelId;
- return theOasis2OOoTransformerUnoTunnelId.getSeq();
-}
-
-// XUnoTunnel
-sal_Int64 SAL_CALL Oasis2OOoTransformer::getSomething( const Sequence< sal_Int8 >& rId )
-{
- return comphelper::getSomethingImpl(rId, this);
-}
-
// XServiceInfo
OUString SAL_CALL Oasis2OOoTransformer::getImplementationName()
{
diff --git a/xmloff/source/transform/Oasis2OOo.hxx b/xmloff/source/transform/Oasis2OOo.hxx
index fe3db7ceafa8..fe41b427b6d6 100644
--- a/xmloff/source/transform/Oasis2OOo.hxx
+++ b/xmloff/source/transform/Oasis2OOo.hxx
@@ -48,10 +48,6 @@ public:
virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
- // XUnoTunnel
- static const css::uno::Sequence<sal_Int8>& getUnoTunnelId() noexcept;
- virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) override;
-
virtual OUString GetEventName( const OUString& rName,
bool bForm = false ) override;
};
diff --git a/xmloff/source/transform/Transformer.hxx b/xmloff/source/transform/Transformer.hxx
index 84647a5b49db..1c7569350c8f 100644
--- a/xmloff/source/transform/Transformer.hxx
+++ b/xmloff/source/transform/Transformer.hxx
@@ -20,7 +20,6 @@
#pragma once
#include <com/sun/star/xml/sax/XExtendedDocumentHandler.hpp>
-#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <cppuhelper/implbase.hxx>
@@ -28,8 +27,7 @@
class XMLTransformer : public ::cppu::WeakImplHelper<
css::xml::sax::XExtendedDocumentHandler,
css::lang::XServiceInfo,
- css::lang::XInitialization,
- css::lang::XUnoTunnel>
+ css::lang::XInitialization>
{
};