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>
This commit is contained in:
Noel Grandin
2023-01-13 09:22:33 +02:00
parent 7666648ab2
commit 79752f9a37
5 changed files with 1 additions and 35 deletions

View File

@@ -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()
{

View File

@@ -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;

View File

@@ -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()
{

View File

@@ -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;
};

View File

@@ -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>
{
};