svl/source/numbers/zforlist.cxx |   11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

New commits:
commit 3a3ab826e73cc98988f2044e497ca55461b40c4e
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Thu Feb 29 12:52:22 2024 +0000
Commit:     Michael Stahl <michael.st...@allotropia.de>
CommitDate: Wed Apr 17 11:10:05 2024 +0200

    Related: tdf#160056 use member init list
    
    Change-Id: I09dea90e3e3f3fd0a4047b989329a027f788f695
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164148
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166123
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>

diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx
index 1597f8b244e0..ddefc17699b3 100644
--- a/svl/source/numbers/zforlist.cxx
+++ b/svl/source/numbers/zforlist.cxx
@@ -278,10 +278,11 @@ SvNumberFormatter::SvNumberFormatter( const Reference< 
XComponentContext >& rxCo
     , IniLnge(eLang != LANGUAGE_DONTKNOW ? eLang : UNKNOWN_SUBSTITUTE)
     , ActLnge(IniLnge)
     , maLanguageTag(IniLnge)
+    , MaxCLOffset(0)
+    , nDefaultSystemCurrencyFormat(NUMBERFORMAT_ENTRY_NOT_FOUND)
+    , eEvalDateFormat(NF_EVALDATEFORMAT_INTL)
+    , bNoZero(false)
 {
-    eEvalDateFormat = NF_EVALDATEFORMAT_INTL;
-    nDefaultSystemCurrencyFormat = NUMBERFORMAT_ENTRY_NOT_FOUND;
-
     xCharClass.changeLocale( m_xContext, maLanguageTag );
     xLocaleData.init( m_xContext, maLanguageTag );
     xCalendar.init( m_xContext, maLanguageTag.getLocale() );
@@ -297,11 +298,7 @@ SvNumberFormatter::SvNumberFormatter( const Reference< 
XComponentContext >& rxCo
 
     pStringScanner.reset( new ImpSvNumberInputScan( this ) );
     pFormatScanner.reset( new ImpSvNumberformatScan( this ) );
-    pFormatTable = nullptr;
-    MaxCLOffset = 0;
     ImpGenerateFormats( 0, false );     // 0 .. 999 for initialized language 
formats
-    pMergeTable = nullptr;
-    bNoZero = false;
 
     ::osl::MutexGuard aGuard( GetGlobalMutex() );
     GetFormatterRegistry().Insert( this );

Reply via email to