summaryrefslogtreecommitdiff
path: root/sw/source/core/edit/editsh.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/edit/editsh.cxx')
-rw-r--r--sw/source/core/edit/editsh.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/sw/source/core/edit/editsh.cxx b/sw/source/core/edit/editsh.cxx
index ddabe6bc4fa7..0ece2156ee4f 100644
--- a/sw/source/core/edit/editsh.cxx
+++ b/sw/source/core/edit/editsh.cxx
@@ -753,7 +753,7 @@ void SwEditShell::SetNumberingRestart()
SwNode* pNd = GetDoc()->GetNodes()[ nCurrNd ];
switch( pNd->GetNodeType() )
{
- case ND_TEXTNODE:
+ case SwNodeType::Text:
if( nullptr != ( pContentFrame = static_cast<SwTextNode*>(pNd)->getLayoutFrame( GetLayout() )) )
{
// skip hidden frames - ignore protection!
@@ -794,15 +794,12 @@ void SwEditShell::SetNumberingRestart()
}
}
break;
- case ND_SECTIONNODE:
+ case SwNodeType::Section:
// skip hidden sections - ignore protection!
if(static_cast<SwSectionNode*>(pNd)->GetSection().IsHidden() )
nCurrNd = pNd->EndOfSectionIndex();
break;
- case ND_ENDNODE:
- {
- break;
- }
+ default: break;
}
bGoOn = nCurrNd < nEndNd;