summaryrefslogtreecommitdiff
path: root/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx')
-rw-r--r--sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx b/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx
index 15cf4916c981..230202341a86 100644
--- a/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx
+++ b/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx
@@ -644,7 +644,7 @@ SwWrtShell* SwSpellDialogChildWindow::GetWrtShell_Impl()
sal_uInt16 nShellIdx = 0;
SfxShell* pShell;
while(0 != (pShell = pDispatch->GetShell(nShellIdx++)))
- if(pShell->ISA(SwView))
+ if(dynamic_cast< const SwView *>( pShell ) != nullptr)
{
pView = static_cast<SwView* >(pShell);
break;
@@ -736,7 +736,7 @@ bool SwSpellDialogChildWindow::FindNextDrawTextError_Impl(SwWrtShell& rSh)
if ( rMarkList.GetMarkCount() == 1 )
{
SdrObject* pObj = rMarkList.GetMark(0)->GetMarkedSdrObj();
- if( pObj && pObj->ISA(SdrTextObj) )
+ if( pObj && dynamic_cast< const SdrTextObj *>( pObj ) != nullptr )
pCurrentTextObj = static_cast<SdrTextObj*>(pObj);
}
// at first fill the list of drawing objects