summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/doccorr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/doc/doccorr.cxx')
-rw-r--r--sw/source/core/doc/doccorr.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/doc/doccorr.cxx b/sw/source/core/doc/doccorr.cxx
index 1bd077ba2453..26b1371304e9 100644
--- a/sw/source/core/doc/doccorr.cxx
+++ b/sw/source/core/doc/doccorr.cxx
@@ -101,7 +101,7 @@ void PaMCorrAbs( const SwPaM& rRange,
{
for(const SwViewShell& rShell : pShell->GetRingContainer())
{
- if(!rShell.IsA( TYPE( SwCrsrShell )))
+ if(dynamic_cast<const SwCrsrShell *>(&rShell) == nullptr)
continue;
const SwCrsrShell* pCrsrShell = static_cast<const SwCrsrShell*>(&rShell);
SwPaM *_pStkCrsr = pCrsrShell->GetStkCrsr();
@@ -254,7 +254,7 @@ void PaMCorrRel( const SwNodeIndex &rOldNode,
{
for(const SwViewShell& rShell : pShell->GetRingContainer())
{
- if(!rShell.IsA( TYPE( SwCrsrShell )))
+ if(dynamic_cast<const SwCrsrShell *>(&rShell) == nullptr)
continue;
SwCrsrShell* pCrsrShell = const_cast<SwCrsrShell*>(static_cast<const SwCrsrShell*>(&rShell));
SwPaM *_pStkCrsr = pCrsrShell->GetStkCrsr();
@@ -330,7 +330,7 @@ SwEditShell const * SwDoc::GetEditShell() const
for(const SwViewShell& rCurrentSh : pCurrentView->GetRingContainer())
{
// look for an EditShell (if it exists)
- if( rCurrentSh.IsA( TYPE( SwEditShell ) ) )
+ if( dynamic_cast<const SwEditShell *>(&rCurrentSh) != nullptr )
{
return static_cast<const SwEditShell*>(&rCurrentSh);
}