summaryrefslogtreecommitdiff
path: root/sw/source/ui/index/swuiidxmrk.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/index/swuiidxmrk.cxx')
-rw-r--r--sw/source/ui/index/swuiidxmrk.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/ui/index/swuiidxmrk.cxx b/sw/source/ui/index/swuiidxmrk.cxx
index b754eac9d5d4..22b186108a77 100644
--- a/sw/source/ui/index/swuiidxmrk.cxx
+++ b/sw/source/ui/index/swuiidxmrk.cxx
@@ -358,8 +358,7 @@ String SwIndexMarkPane::GetDefaultPhoneticReading( const String& rText )
if( !bIsPhoneticReadingEnabled )
return aEmptyStr;
- lang::Locale aLocale( SvxCreateLocale( LanguageType( nLangForPhoneticReading ) ) );
- return xExtendedIndexEntrySupplier->getPhoneticCandidate(rText, aLocale);
+ return xExtendedIndexEntrySupplier->getPhoneticCandidate(rText, LanguageTag( nLangForPhoneticReading ).getLocale());
}
/* --------------------------------------------------
@@ -451,7 +450,7 @@ static void lcl_SelectSameStrings(SwWrtShell& rSh, sal_Bool bWordOnly, sal_Bool
SearchAlgorithms_ABSOLUTE,
( bWordOnly ? SearchFlags::NORM_WORD_ONLY : 0 ),
rSh.GetSelTxt(), OUString(),
- SvxCreateLocale( GetAppLanguage() ),
+ LanguageTag( GetAppLanguage() ).getLocale(),
0, 0, 0,
(bCaseSensitive
? 0