Kaydet (Commit) 201a3b83 authored tarafından Eike Rathke's avatar Eike Rathke

we don't need to convert a system locale

Change-Id: I1b964fc34f078ddf400927ddce4c19130db43ad8
üst 52b10fde
...@@ -1107,7 +1107,7 @@ int SwFindParaAttr::Find( SwPaM* pCrsr, SwMoveFn fnMove, const SwPaM* pRegion, ...@@ -1107,7 +1107,7 @@ int SwFindParaAttr::Find( SwPaM* pCrsr, SwMoveFn fnMove, const SwPaM* pRegion,
aTmp.searchFlag |= (SearchFlags::REG_NOT_BEGINOFLINE | aTmp.searchFlag |= (SearchFlags::REG_NOT_BEGINOFLINE |
SearchFlags::REG_NOT_ENDOFLINE); SearchFlags::REG_NOT_ENDOFLINE);
aTmp.Locale = LanguageTag( LANGUAGE_SYSTEM ).getLocale(); aTmp.Locale = SvtSysLocale().GetLanguageTag().getLocale();
pSTxt = new utl::TextSearch( aTmp ); pSTxt = new utl::TextSearch( aTmp );
} }
......
...@@ -374,7 +374,7 @@ void SwEditShell::ApplyAutoMark() ...@@ -374,7 +374,7 @@ void SwEditShell::ApplyAutoMark()
SearchOptions aSearchOpt( SearchOptions aSearchOpt(
SearchAlgorithms_ABSOLUTE, nSrchFlags, SearchAlgorithms_ABSOLUTE, nSrchFlags,
sEmpty, sEmpty, sEmpty, sEmpty,
LanguageTag( LANGUAGE_SYSTEM ).getLocale(), SvtSysLocale().GetLanguageTag().getLocale(),
nLEV_Other, nLEV_Longer, nLEV_Shorter, nLEV_Other, nLEV_Longer, nLEV_Shorter,
nTransliterationFlags ); nTransliterationFlags );
......
...@@ -2518,7 +2518,7 @@ SwUnoCursorHelper::CreateSortDescriptor(const bool bFromTable) ...@@ -2518,7 +2518,7 @@ SwUnoCursorHelper::CreateSortDescriptor(const bool bFromTable)
uno::Sequence< table::TableSortField > aFields(3); uno::Sequence< table::TableSortField > aFields(3);
table::TableSortField* pFields = aFields.getArray(); 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 // get collator algorithm to be used for the locale
uno::Sequence< OUString > aSeq( uno::Sequence< OUString > aSeq(
GetAppCollator().listCollatorAlgorithms( aLang ) ); GetAppCollator().listCollatorAlgorithms( aLang ) );
......
...@@ -1897,7 +1897,7 @@ bool SwView::JumpToSwMark( const String& rMark ) ...@@ -1897,7 +1897,7 @@ bool SwView::JumpToSwMark( const String& rMark )
SearchOptions aSearchOpt( SearchOptions aSearchOpt(
SearchAlgorithms_ABSOLUTE, 0, SearchAlgorithms_ABSOLUTE, 0,
sName, rtl::OUString(), sName, rtl::OUString(),
LanguageTag( LANGUAGE_SYSTEM ).getLocale(), SvtSysLocale().GetLanguageTag().getLocale(),
0,0,0, 0,0,0,
TransliterationModules_IGNORE_CASE ); TransliterationModules_IGNORE_CASE );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment