diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-20 13:47:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-22 19:10:55 +0000 |
commit | f647691a55554f1a3a02aa4e997246ff7c16bcaa (patch) | |
tree | c6e28fb59cd619cb8aa8211ac12559760f3bcc1a /sc/source/ui/view | |
parent | fc83e664fc119bf3d8a5a0bcc4d15a8e788d57fb (diff) |
XUnoTunnel->dynamic_cast in ScTabViewObj
Change-Id: I8400b56dd656fe2a1144696db8578869b2d26cc4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145972
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/view')
-rw-r--r-- | sc/source/ui/view/drawview.cxx | 6 | ||||
-rw-r--r-- | sc/source/ui/view/gridwin.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/tabview.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/tabview3.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/tabview5.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/tabvwsh4.cxx | 2 |
6 files changed, 8 insertions, 8 deletions
diff --git a/sc/source/ui/view/drawview.cxx b/sc/source/ui/view/drawview.cxx index 24aec4aa5da2..7c31949bb2dc 100644 --- a/sc/source/ui/view/drawview.cxx +++ b/sc/source/ui/view/drawview.cxx @@ -528,7 +528,7 @@ void ScDrawView::MarkListHasChanged() uno::Reference<frame::XController> xController = rFrame.GetController(); if (xController.is()) { - ScTabViewObj* pImp = comphelper::getFromUnoTunnel<ScTabViewObj>( xController ); + ScTabViewObj* pImp = dynamic_cast<ScTabViewObj*>( xController.get() ); if (pImp) pImp->SelectionChanged(); } @@ -578,7 +578,7 @@ bool ScDrawView::SdrBeginTextEdit( uno::Reference< frame::XController > xController = rFrame.GetController(); if (xController.is()) { - ScTabViewObj* pImp = comphelper::getFromUnoTunnel<ScTabViewObj>( xController ); + ScTabViewObj* pImp = dynamic_cast<ScTabViewObj*>( xController.get() ); if (pImp) pImp->SelectionChanged(); } @@ -602,7 +602,7 @@ SdrEndTextEditKind ScDrawView::SdrEndTextEdit( bool bDontDeleteReally ) uno::Reference< frame::XController > xController = rFrame.GetController(); if (xController.is()) { - ScTabViewObj* pImp = comphelper::getFromUnoTunnel<ScTabViewObj>( xController ); + ScTabViewObj* pImp = dynamic_cast<ScTabViewObj*>( xController.get() ); if (pImp) pImp->SelectionChanged(); } diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx index 547338589298..3b6cdae18b55 100644 --- a/sc/source/ui/view/gridwin.cxx +++ b/sc/source/ui/view/gridwin.cxx @@ -2803,7 +2803,7 @@ bool ScGridWindow::PreNotify( NotifyEvent& rNEvt ) css::uno::Reference<css::frame::XController> xController = pViewFrame->GetFrame().GetController(); if (xController.is()) { - ScTabViewObj* pImp = comphelper::getFromUnoTunnel<ScTabViewObj>( xController ); + ScTabViewObj* pImp = dynamic_cast<ScTabViewObj*>( xController.get() ); if (pImp && pImp->IsMouseListening()) { css::awt::MouseEvent aEvent; diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx index 607e5ddc60d2..048178301f1d 100644 --- a/sc/source/ui/view/tabview.cxx +++ b/sc/source/ui/view/tabview.cxx @@ -2247,7 +2247,7 @@ void ScTabView::SetNewVisArea() css::uno::Reference<css::frame::XController> xController = rFrame.GetController(); if (xController.is()) { - ScTabViewObj* pImp = comphelper::getFromUnoTunnel<ScTabViewObj>( xController ); + ScTabViewObj* pImp = dynamic_cast<ScTabViewObj*>( xController.get() ); if (pImp) pImp->VisAreaChanged(); } diff --git a/sc/source/ui/view/tabview3.cxx b/sc/source/ui/view/tabview3.cxx index fdf3a3d517dc..0da3ae55b283 100644 --- a/sc/source/ui/view/tabview3.cxx +++ b/sc/source/ui/view/tabview3.cxx @@ -537,7 +537,7 @@ void ScTabView::SelectionChanged(bool bFromPaste) uno::Reference<frame::XController> xController = pViewFrame->GetFrame().GetController(); if (xController.is()) { - ScTabViewObj* pImp = comphelper::getFromUnoTunnel<ScTabViewObj>( xController ); + ScTabViewObj* pImp = dynamic_cast<ScTabViewObj*>( xController.get() ); if (pImp) pImp->SelectionChanged(); } diff --git a/sc/source/ui/view/tabview5.cxx b/sc/source/ui/view/tabview5.cxx index f3569ac9497f..5e4956eb482b 100644 --- a/sc/source/ui/view/tabview5.cxx +++ b/sc/source/ui/view/tabview5.cxx @@ -312,7 +312,7 @@ void ScTabView::TabChanged( bool bSameTabButMoved ) uno::Reference<frame::XController> xController = pViewFrame->GetFrame().GetController(); if (xController.is()) { - ScTabViewObj* pImp = comphelper::getFromUnoTunnel<ScTabViewObj>( xController ); + ScTabViewObj* pImp = dynamic_cast<ScTabViewObj*>( xController.get() ); if (pImp) pImp->SheetChanged( bSameTabButMoved ); } diff --git a/sc/source/ui/view/tabvwsh4.cxx b/sc/source/ui/view/tabvwsh4.cxx index c0a8ae702257..63cbf1f2229a 100644 --- a/sc/source/ui/view/tabvwsh4.cxx +++ b/sc/source/ui/view/tabvwsh4.cxx @@ -1136,7 +1136,7 @@ static ScTabViewObj* lcl_GetViewObj( const ScTabViewShell& rShell ) SfxFrame& rFrame = pViewFrame->GetFrame(); uno::Reference<frame::XController> xController = rFrame.GetController(); if (xController.is()) - pRet = comphelper::getFromUnoTunnel<ScTabViewObj>( xController ); + pRet = dynamic_cast<ScTabViewObj*>( xController.get() ); } return pRet; } |