diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-12 16:39:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-14 07:28:18 +0000 |
commit | d66d1f6fd47b02076945c09c0d6f8f019d0501d5 (patch) | |
tree | e1410a37606542e7003f474b903d168fc6080f83 /sc/source | |
parent | fd6df89dbc26cda08c54e76644b43219d8b75236 (diff) |
XUnoTunnel->dynamic_cast in SvXMLExport
Change-Id: I68e4691ac0a58e2320b534d15934ff177feb124d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145493
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/filter/xml/xmlexprt.cxx | 7 | ||||
-rw-r--r-- | sc/source/filter/xml/xmlexprt.hxx | 3 | ||||
-rw-r--r-- | sc/source/filter/xml/xmlwrap.cxx | 2 |
3 files changed, 1 insertions, 11 deletions
diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx index 051c0ac251b3..e164766fa677 100644 --- a/sc/source/filter/xml/xmlexprt.cxx +++ b/sc/source/filter/xml/xmlexprt.cxx @@ -5449,13 +5449,6 @@ void SAL_CALL ScXMLExport::initialize( const css::uno::Sequence< css::uno::Any > SvXMLExport::initialize(aArguments); } -// XUnoTunnel -sal_Int64 SAL_CALL ScXMLExport::getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) -{ - SolarMutexGuard aGuard; - return SvXMLExport::getSomething(aIdentifier); -} - void ScXMLExport::DisposingModel() { SvXMLExport::DisposingModel(); diff --git a/sc/source/filter/xml/xmlexprt.hxx b/sc/source/filter/xml/xmlexprt.hxx index 8ab8901d4671..a29ab0ea45d8 100644 --- a/sc/source/filter/xml/xmlexprt.hxx +++ b/sc/source/filter/xml/xmlexprt.hxx @@ -271,9 +271,6 @@ public: // XInitialization virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) override; - // XUnoTunnel - virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) override; - virtual void DisposingModel() override; }; diff --git a/sc/source/filter/xml/xmlwrap.cxx b/sc/source/filter/xml/xmlwrap.cxx index 79cb3a9fc06a..1bcd82311d26 100644 --- a/sc/source/filter/xml/xmlwrap.cxx +++ b/sc/source/filter/xml/xmlwrap.cxx @@ -660,7 +660,7 @@ bool ScXMLImportWrapper::ExportToComponent(const uno::Reference<uno::XComponentC if ( xFilter.is() ) { - ScXMLExport* pExport = static_cast<ScXMLExport*>(comphelper::getFromUnoTunnel<SvXMLExport>(xFilter)); + ScXMLExport* pExport = static_cast<ScXMLExport*>(dynamic_cast<SvXMLExport*>(xFilter.get())); pExport->SetSharedData(std::move(pSharedData)); // if there are sheets to copy, get the source stream |