diff options
Diffstat (limited to 'sw/source/uibase/config/uinums.cxx')
-rw-r--r-- | sw/source/uibase/config/uinums.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/config/uinums.cxx b/sw/source/uibase/config/uinums.cxx index d48b6cbb689e..5cd64bf7578c 100644 --- a/sw/source/uibase/config/uinums.cxx +++ b/sw/source/uibase/config/uinums.cxx @@ -264,10 +264,10 @@ void SwNumRulesWithName::_SwNumFmtGlobal::ChgNumFmt( SwWrtShell& rSh, pFmt->SetFmtAttr( aItems[ --n ] ); } } - ((SwNumFmt&)aFmt).SetCharFmt( pFmt ); + const_cast<SwNumFmt&>(aFmt).SetCharFmt( pFmt ); rNew = aFmt; if( pFmt ) - ((SwNumFmt&)aFmt).SetCharFmt( 0 ); + const_cast<SwNumFmt&>(aFmt).SetCharFmt( 0 ); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |