diff options
author | Eike Rathke <erack@redhat.com> | 2012-11-27 18:55:08 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2012-11-27 18:55:43 +0100 |
commit | 201a3b83d0868c8b0a884a17779b6a4838ed0615 (patch) | |
tree | c89c3e222ce9275d8235f4942d9241c719351f88 /sw | |
parent | 52b10fdedb9a056cd8f4ef5f01863a3bb1e249c1 (diff) |
we don't need to convert a system locale
Change-Id: I1b964fc34f078ddf400927ddce4c19130db43ad8
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/crsr/findattr.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/edit/edtox.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/unocore/unoobj.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/uiview/view2.cxx | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/crsr/findattr.cxx b/sw/source/core/crsr/findattr.cxx index 451c2a57cfdc..a9180abe3616 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 0f10f11e15b1..6645588ffe98 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 aea55c81b5aa..d9adeb3552f2 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 afeb9f484ac9..5cf63a055bc3 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 ); |