From 1b0f6be2d06154f6ecab2f6ee930fa3c5a62f01d Mon Sep 17 00:00:00 2001 From: Matteo Casalin Date: Sun, 29 Sep 2013 10:45:36 +0200 Subject: [PATCH] There are no users of this optional argument Change-Id: I74b4988a3c93e0964580bdd35210b3495365d5b6 --- sw/inc/doc.hxx | 2 +- sw/source/core/doc/docnum.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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;