summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/sectfrm.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/layout/sectfrm.cxx')
-rw-r--r--sw/source/core/layout/sectfrm.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/layout/sectfrm.cxx b/sw/source/core/layout/sectfrm.cxx
index 5f71d85f2806..0147d1be463b 100644
--- a/sw/source/core/layout/sectfrm.cxx
+++ b/sw/source/core/layout/sectfrm.cxx
@@ -759,7 +759,7 @@ const SwSectionFormat* SwSectionFrm::_GetEndSectFormat() const
const SwSectionFormat *pFormat = pSection->GetFormat();
while( !pFormat->GetEndAtTextEnd().IsAtEnd() )
{
- if( pFormat->GetRegisteredIn()->ISA( SwSectionFormat ) )
+ if( dynamic_cast< const SwSectionFormat *>( pFormat->GetRegisteredIn()) != nullptr )
pFormat = static_cast<const SwSectionFormat*>(pFormat->GetRegisteredIn());
else
return NULL;
@@ -2208,7 +2208,7 @@ bool SwSectionFrm::IsDescendantFrom( const SwSectionFormat* pFormat ) const
const SwSectionFormat *pMyFormat = pSection->GetFormat();
while( pFormat != pMyFormat )
{
- if( pMyFormat->GetRegisteredIn()->ISA( SwSectionFormat ) )
+ if( dynamic_cast< const SwSectionFormat *>( pMyFormat->GetRegisteredIn()) != nullptr )
pMyFormat = static_cast<const SwSectionFormat*>(pMyFormat->GetRegisteredIn());
else
return false;
@@ -2225,7 +2225,7 @@ void SwSectionFrm::CalcFootnoteAtEndFlag()
FTNEND_ATTXTEND_OWNNUMANDFMT == nVal;
while( !bFootnoteAtEnd && !bOwnFootnoteNum )
{
- if( pFormat->GetRegisteredIn()->ISA( SwSectionFormat ) )
+ if( dynamic_cast< const SwSectionFormat *>( pFormat->GetRegisteredIn()) != nullptr )
pFormat = static_cast<SwSectionFormat*>(pFormat->GetRegisteredIn());
else
break;
@@ -2250,7 +2250,7 @@ void SwSectionFrm::CalcEndAtEndFlag()
bEndnAtEnd = pFormat->GetEndAtTextEnd( false ).IsAtEnd();
while( !bEndnAtEnd )
{
- if( pFormat->GetRegisteredIn()->ISA( SwSectionFormat ) )
+ if( dynamic_cast< const SwSectionFormat *>( pFormat->GetRegisteredIn()) != nullptr )
pFormat = static_cast<SwSectionFormat*>(pFormat->GetRegisteredIn());
else
break;