[Libreoffice-commits] .: sw/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Nov 27 09:56:20 PST 2012


 sw/source/core/crsr/findattr.cxx  |    2 +-
 sw/source/core/edit/edtox.cxx     |    2 +-
 sw/source/core/unocore/unoobj.cxx |    2 +-
 sw/source/ui/uiview/view2.cxx     |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 201a3b83d0868c8b0a884a17779b6a4838ed0615
Author: Eike Rathke <erack at redhat.com>
Date:   Tue Nov 27 18:55:08 2012 +0100

    we don't need to convert a system locale
    
    Change-Id: I1b964fc34f078ddf400927ddce4c19130db43ad8

diff --git a/sw/source/core/crsr/findattr.cxx b/sw/source/core/crsr/findattr.cxx
index 451c2a5..a9180ab 100644
--- a/sw/source/core/crsr/findattr.cxx
+++ b/sw/source/core/crsr/findattr.cxx
@@ -1107,7 +1107,7 @@ int SwFindParaAttr::Find( SwPaM* pCrsr, SwMoveFn fnMove, const SwPaM* pRegion,
                 aTmp.searchFlag |= (SearchFlags::REG_NOT_BEGINOFLINE |
                                     SearchFlags::REG_NOT_ENDOFLINE);
 
-                aTmp.Locale = LanguageTag( LANGUAGE_SYSTEM ).getLocale();
+                aTmp.Locale = SvtSysLocale().GetLanguageTag().getLocale();
 
                 pSTxt = new utl::TextSearch( aTmp );
             }
diff --git a/sw/source/core/edit/edtox.cxx b/sw/source/core/edit/edtox.cxx
index 0f10f11..6645588 100644
--- a/sw/source/core/edit/edtox.cxx
+++ b/sw/source/core/edit/edtox.cxx
@@ -374,7 +374,7 @@ void SwEditShell::ApplyAutoMark()
         SearchOptions aSearchOpt(
                             SearchAlgorithms_ABSOLUTE, nSrchFlags,
                             sEmpty, sEmpty,
-                            LanguageTag( LANGUAGE_SYSTEM ).getLocale(),
+                            SvtSysLocale().GetLanguageTag().getLocale(),
                             nLEV_Other, nLEV_Longer, nLEV_Shorter,
                             nTransliterationFlags );
 
diff --git a/sw/source/core/unocore/unoobj.cxx b/sw/source/core/unocore/unoobj.cxx
index aea55c8..d9adeb3 100644
--- a/sw/source/core/unocore/unoobj.cxx
+++ b/sw/source/core/unocore/unoobj.cxx
@@ -2518,7 +2518,7 @@ SwUnoCursorHelper::CreateSortDescriptor(const bool bFromTable)
     uno::Sequence< table::TableSortField > aFields(3);
     table::TableSortField* pFields = aFields.getArray();
 
-    lang::Locale aLang( LanguageTag( LANGUAGE_SYSTEM).getLocale());
+    lang::Locale aLang( SvtSysLocale().GetLanguageTag().getLocale());
     // get collator algorithm to be used for the locale
     uno::Sequence< OUString > aSeq(
             GetAppCollator().listCollatorAlgorithms( aLang ) );
diff --git a/sw/source/ui/uiview/view2.cxx b/sw/source/ui/uiview/view2.cxx
index afeb9f4..5cf63a0 100644
--- a/sw/source/ui/uiview/view2.cxx
+++ b/sw/source/ui/uiview/view2.cxx
@@ -1897,7 +1897,7 @@ bool SwView::JumpToSwMark( const String& rMark )
                 SearchOptions aSearchOpt(
                                     SearchAlgorithms_ABSOLUTE, 0,
                                     sName, rtl::OUString(),
-                                    LanguageTag( LANGUAGE_SYSTEM ).getLocale(),
+                                    SvtSysLocale().GetLanguageTag().getLocale(),
                                     0,0,0,
                                     TransliterationModules_IGNORE_CASE );
 


More information about the Libreoffice-commits mailing list