diff options
Diffstat (limited to 'sd/source/ui/func/futhes.cxx')
-rw-r--r-- | sd/source/ui/func/futhes.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/func/futhes.cxx b/sd/source/ui/func/futhes.cxx index 7ccee443f4d6..b3218da08a3a 100644 --- a/sd/source/ui/func/futhes.cxx +++ b/sd/source/ui/func/futhes.cxx @@ -70,7 +70,7 @@ void FuThesaurus::DoExecute( SfxRequest& ) SfxErrorContext aContext(ERRCTX_SVX_LINGU_THESAURUS, OUString(), mpWindow, RID_SVXERRCTX, &DIALOG_MGR() ); - if (mpViewShell && mpViewShell->ISA(DrawViewShell)) + if (mpViewShell && dynamic_cast< DrawViewShell *>( mpViewShell ) != nullptr) { SdrTextObj* pTextObj = NULL; @@ -83,7 +83,7 @@ void FuThesaurus::DoExecute( SfxRequest& ) SdrMark* pMark = rMarkList.GetMark(0); SdrObject* pObj = pMark->GetMarkedSdrObj(); - if ( pObj->ISA(SdrTextObj) ) + if ( dynamic_cast< const SdrTextObj *>( pObj ) != nullptr ) { pTextObj = static_cast<SdrTextObj*>(pObj); } @@ -117,7 +117,7 @@ void FuThesaurus::DoExecute( SfxRequest& ) } } } - else if (mpViewShell && mpViewShell->ISA(OutlineViewShell)) + else if (mpViewShell && dynamic_cast< OutlineViewShell *>( mpViewShell ) != nullptr) { Outliner* pOutliner = mpDoc->GetOutliner(); OutlinerView* pOutlView = pOutliner->GetView(0); |