sc/inc/datauno.hxx | 5 ----- sc/source/ui/unoobj/cellsuno.cxx | 2 +- sc/source/ui/unoobj/datauno.cxx | 4 ---- 3 files changed, 1 insertion(+), 10 deletions(-)
New commits: commit 2f141c05a7205db660e79673ad2676e19d50583d Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Sat Jan 21 14:46:57 2023 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Mon Jan 23 06:34:10 2023 +0000 XUnoTunnel->dynamic_cast in ScSubTotalDescriptorBase Change-Id: I45b15bf9a9be2de82b86701cd3af5c4f8c6fff13 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145980 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sc/inc/datauno.hxx b/sc/inc/datauno.hxx index 528496380806..f2ee6b674129 100644 --- a/sc/inc/datauno.hxx +++ b/sc/inc/datauno.hxx @@ -38,7 +38,6 @@ #include <com/sun/star/container/XEnumerationAccess.hpp> #include <com/sun/star/container/XIndexAccess.hpp> #include <com/sun/star/beans/XPropertySet.hpp> -#include <com/sun/star/lang/XUnoTunnel.hpp> #include <com/sun/star/container/XNamed.hpp> #include <com/sun/star/util/XRefreshable.hpp> #include <comphelper/servicehelper.hxx> @@ -110,7 +109,6 @@ class ScSubTotalDescriptorBase : public cppu::WeakImplHelper< css::container::XEnumerationAccess, css::container::XIndexAccess, css::beans::XPropertySet, - css::lang::XUnoTunnel, css::lang::XServiceInfo > { private: @@ -160,9 +158,6 @@ public: virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override; - // XUnoTunnel - UNO3_GETIMPLEMENTATION_DECL(ScSubTotalDescriptorBase) - // XServiceInfo virtual OUString SAL_CALL getImplementationName() override; virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override; diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx index 5d44da0d8fca..69f4cbd5e61f 100644 --- a/sc/source/ui/unoobj/cellsuno.cxx +++ b/sc/source/ui/unoobj/cellsuno.cxx @@ -5526,7 +5526,7 @@ void SAL_CALL ScCellRangeObj::applySubTotals( ScDocShell* pDocSh = GetDocShell(); ScSubTotalDescriptorBase* pImp = - comphelper::getFromUnoTunnel<ScSubTotalDescriptorBase>( xDescriptor ); + dynamic_cast<ScSubTotalDescriptorBase*>( xDescriptor.get() ); if (!(pDocSh && pImp)) return; diff --git a/sc/source/ui/unoobj/datauno.cxx b/sc/source/ui/unoobj/datauno.cxx index ee285d662b7c..5d4dc4761cbd 100644 --- a/sc/source/ui/unoobj/datauno.cxx +++ b/sc/source/ui/unoobj/datauno.cxx @@ -731,10 +731,6 @@ uno::Any SAL_CALL ScSubTotalDescriptorBase::getPropertyValue( const OUString& aP SC_IMPL_DUMMY_PROPERTY_LISTENER( ScSubTotalDescriptorBase ) -// XUnoTunnel - -UNO3_GETIMPLEMENTATION_IMPL(ScSubTotalDescriptorBase); - ScSubTotalDescriptor::ScSubTotalDescriptor() { }