From b3c77e46e54872ed69e24a7f459b97f8334fcd9c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 18 Sep 2017 13:04:59 +0200 Subject: remove unused aLocale from SvxNumRule and fix usage site, regression from commit 41956321ceefb5836feb2c119b66de7bb557740f Date: Sat Nov 24 18:54:09 2012 +0100 get rid of Svx...Locale...() double conversion nonsense Change-Id: Ic70abf5f52dce1db9cffd9c819e57f1a6c2a3df3 --- editeng/source/items/numitem.cxx | 6 ++++-- include/editeng/numitem.hxx | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/editeng/source/items/numitem.cxx b/editeng/source/items/numitem.cxx index 2b6a62f1c9a5..24a612f93d4c 100644 --- a/editeng/source/items/numitem.cxx +++ b/editeng/source/items/numitem.cxx @@ -604,7 +604,6 @@ SvxNumRule::SvxNumRule( SvxNumRuleFlags nFeatures, SvxNumRule::SvxNumRule(const SvxNumRule& rCopy) { ++nRefCount; - aLocale = rCopy.aLocale; nLevelCount = rCopy.nLevelCount ; nFeatureFlags = rCopy.nFeatureFlags ; bContinuousNumbering = rCopy.bContinuousNumbering; @@ -853,7 +852,10 @@ OUString SvxNumRule::MakeNumString( const SvxNodeNum& rNum ) const if( rNum.GetLevelVal()[ i ] ) { if(SVX_NUM_BITMAP != rNFmt.GetNumberingType()) - aStr += rNFmt.GetNumStr( rNum.GetLevelVal()[ i ], aLocale ); + { + const LanguageTag& rLang = Application::GetSettings().GetLanguageTag(); + aStr += rNFmt.GetNumStr( rNum.GetLevelVal()[ i ], rLang.getLocale() ); + } else bDot = false; } diff --git a/include/editeng/numitem.hxx b/include/editeng/numitem.hxx index 522ebc01eb34..c898e3dc8045 100644 --- a/include/editeng/numitem.hxx +++ b/include/editeng/numitem.hxx @@ -248,7 +248,6 @@ class EDITENG_DLLPUBLIC SvxNumRule final bool aFmtsSet[SVX_MAX_NUM]; // Flags indicating valid levels static sal_Int32 nRefCount; - css::lang::Locale aLocale; public: SvxNumRule( SvxNumRuleFlags nFeatures, sal_uInt16 nLevels, -- cgit