diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-20 13:51:27 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-22 19:11:04 +0000 |
commit | f94dc655ec37ec8f40de70f9105a8427a362f266 (patch) | |
tree | 520b98032032fde6c76df373a19aa27ce9cf2ea8 /sc/source/ui/unoobj/cellsuno.cxx | |
parent | f647691a55554f1a3a02aa4e997246ff7c16bcaa (diff) |
XUnoTunnel->dynamic_cast in ScCellSearchObj
Change-Id: I6f2eda6daf92959973d97a4be38f58a11415776f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145973
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/unoobj/cellsuno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/cellsuno.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx index 119486d79768..851c85645351 100644 --- a/sc/source/ui/unoobj/cellsuno.cxx +++ b/sc/source/ui/unoobj/cellsuno.cxx @@ -3758,7 +3758,7 @@ uno::Reference<container::XIndexAccess> SAL_CALL ScCellRangesBase::findAll( uno::Reference<container::XIndexAccess> xRet; if ( pDocShell && xDesc.is() ) { - ScCellSearchObj* pSearch = comphelper::getFromUnoTunnel<ScCellSearchObj>( xDesc ); + ScCellSearchObj* pSearch = dynamic_cast<ScCellSearchObj*>( xDesc.get() ); if (pSearch) { SvxSearchItem* pSearchItem = pSearch->GetSearchItem(); @@ -3797,7 +3797,7 @@ uno::Reference<uno::XInterface> ScCellRangesBase::Find_Impl( uno::Reference<uno::XInterface> xRet; if ( pDocShell && xDesc.is() ) { - ScCellSearchObj* pSearch = comphelper::getFromUnoTunnel<ScCellSearchObj>( xDesc ); + ScCellSearchObj* pSearch = dynamic_cast<ScCellSearchObj*>( xDesc.get() ); if (pSearch) { SvxSearchItem* pSearchItem = pSearch->GetSearchItem(); @@ -3878,7 +3878,7 @@ sal_Int32 SAL_CALL ScCellRangesBase::replaceAll( const uno::Reference<util::XSea sal_uInt64 nReplaced = 0; if ( pDocShell && xDesc.is() ) { - ScCellSearchObj* pSearch = comphelper::getFromUnoTunnel<ScCellSearchObj>( xDesc ); + ScCellSearchObj* pSearch = dynamic_cast<ScCellSearchObj*>( xDesc.get() ); if (pSearch) { SvxSearchItem* pSearchItem = pSearch->GetSearchItem(); |