diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx index dff338529a91..8d6ea4db9c0e 100644 --- a/sw/inc/doc.hxx +++ b/sw/inc/doc.hxx @@ -1527,7 +1527,7 @@ public: OUString GetUniqueNumRuleName( const OUString* pChkStr = 0, bool bAutoNum = true ) const; void UpdateNumRule(); /// Update all invalids. - void ChgNumRuleFmts( const SwNumRule& rRule, const String * pOldName = 0 ); + void ChgNumRuleFmts( const SwNumRule& rRule ); bool ReplaceNumRule( const SwPosition& rPos, const String& rOldRule, const String& rNewRule ); diff --git a/sw/source/core/doc/docnum.cxx b/sw/source/core/doc/docnum.cxx index 2a3105fa70dd..52f3b1d4fc95 100644 --- a/sw/source/core/doc/docnum.cxx +++ b/sw/source/core/doc/docnum.cxx @@ -1061,9 +1061,9 @@ bool SwDoc::DelNumRule( const String& rName, bool bBroadcast ) return false; } -void SwDoc::ChgNumRuleFmts( const SwNumRule& rRule, const String * pName ) +void SwDoc::ChgNumRuleFmts( const SwNumRule& rRule ) { - SwNumRule* pRule = FindNumRulePtr( pName ? *pName : String(rRule.GetName()) ); + SwNumRule* pRule = FindNumRulePtr( rRule.GetName() ); if( pRule ) { SwUndoInsNum* pUndo = 0;