svl/source/numbers/zforlist.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 5ab6945b6c1745ac594ce633d9b75478d985ff8e
Author:     Caolán McNamara <[email protected]>
AuthorDate: Mon Apr 15 12:37:45 2024 +0100
Commit:     Caolán McNamara <[email protected]>
CommitDate: Mon Apr 15 18:39:01 2024 +0200

    IniLnge is set during ctor and never changes subsequently
    
    so no lock is needed for it
    
    Change-Id: I00461d44f78e9776568492fccb7dee0e9869944e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164848
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>
    (cherry picked from commit ee5b9597605176af0c80f9ea28caac9ba7980254)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165749
    Reviewed-by: Michael Stahl <[email protected]>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166119
    Tested-by: Jenkins CollaboraOffice <[email protected]>

diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx
index 87126032fe75..a340b29a6bec 100644
--- a/svl/source/numbers/zforlist.cxx
+++ b/svl/source/numbers/zforlist.cxx
@@ -1288,8 +1288,7 @@ bool SvNumberFormatter::IsNumberFormat(const OUString& 
sString,
 
 LanguageType SvNumberFormatter::GetLanguage() const
 {
-    ::osl::MutexGuard aGuard( GetInstanceMutex() );
-    return IniLnge;
+    return IniLnge; // immutable
 }
 
 // static

Reply via email to