diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-21 20:57:23 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-23 07:27:43 +0000 |
commit | c04434a58407f76ab378b6a991b23f1aaf534f86 (patch) | |
tree | 9fd7ba018d0f5ee1d07eea888cfe51e1076939f4 /sc/source | |
parent | 2f141c05a7205db660e79673ad2676e19d50583d (diff) |
XUnoTunnel->dynamic_cast in ScAutoFormatObj
Change-Id: Id0910149f89e77de8b50b3892fccee789dd7aa2f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145981
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/unoobj/afmtuno.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sc/source/ui/unoobj/afmtuno.cxx b/sc/source/ui/unoobj/afmtuno.cxx index b26e38cd81b0..cc4fd1fe53ce 100644 --- a/sc/source/ui/unoobj/afmtuno.cxx +++ b/sc/source/ui/unoobj/afmtuno.cxx @@ -190,7 +190,7 @@ void SAL_CALL ScAutoFormatsObj::insertByName( const OUString& aName, const uno:: uno::Reference< uno::XInterface > xInterface(aElement, uno::UNO_QUERY); if ( xInterface.is() ) { - ScAutoFormatObj* pFormatObj = comphelper::getFromUnoTunnel<ScAutoFormatObj>( xInterface ); + ScAutoFormatObj* pFormatObj = dynamic_cast<ScAutoFormatObj*>( xInterface.get() ); if ( pFormatObj && !pFormatObj->IsInserted() ) { ScAutoFormat* pFormats = ScGlobal::GetOrCreateAutoFormat(); @@ -353,10 +353,6 @@ void ScAutoFormatObj::InitFormat( sal_uInt16 nNewIndex ) nFormatIndex = nNewIndex; } -// XUnoTunnel - -UNO3_GETIMPLEMENTATION_IMPL(ScAutoFormatObj); - // XTableAutoFormat rtl::Reference<ScAutoFormatFieldObj> ScAutoFormatObj::GetObjectByIndex_Impl(sal_uInt16 nIndex) |