summaryrefslogtreecommitdiff
path: root/sw/source/core/edit/edglbldc.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/edit/edglbldc.cxx')
-rw-r--r--sw/source/core/edit/edglbldc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/edit/edglbldc.cxx b/sw/source/core/edit/edglbldc.cxx
index a72240b29a46..58c1b0d82b1a 100644
--- a/sw/source/core/edit/edglbldc.cxx
+++ b/sw/source/core/edit/edglbldc.cxx
@@ -73,7 +73,7 @@ void SwEditShell::GetGlobalDocContent( SwGlblDocContents& rArr ) const
case TOX_HEADER_SECTION:
break; // ignore
case TOX_CONTENT_SECTION:
- OSL_ENSURE( pSect->ISA( SwTOXBaseSection ), "no TOXBaseSection!" );
+ OSL_ENSURE( dynamic_cast<const SwTOXBaseSection*>( pSect) != nullptr, "no TOXBaseSection!" );
pNew = new SwGlblDocContent( static_cast<const SwTOXBaseSection*>(pSect) );
break;