linguistic/source/lngsvcmgr.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 3e289cf10b36f423ae6626296d739291850aa53b Author: Eike Rathke <er...@redhat.com> Date: Tue Aug 30 17:34:54 2016 +0200 use static LanguageTag::convertTo...() instead of LanguageTag().get...() They know best when a temporary LanguageTag instance is needed and when not. Change-Id: Ia0dc5b2d165b15362080d60dbb9f58cfa0403014 diff --git a/linguistic/source/lngsvcmgr.cxx b/linguistic/source/lngsvcmgr.cxx index 3f5dbff..10a1eeb 100644 --- a/linguistic/source/lngsvcmgr.cxx +++ b/linguistic/source/lngsvcmgr.cxx @@ -715,7 +715,7 @@ void LngSvcMgr::UpdateAll() const OUString *pNodeName = aNodeNames.getConstArray(); for (i = 0; i < nNodeNames; ++i) { - Locale aLocale( (LanguageTag(pNodeName[i])).getLocale() ); + Locale aLocale( LanguageTag::convertToLocale( pNodeName[i])); Sequence< OUString > aCfgSvcs( getConfiguredServices( aService, aLocale )); Sequence< OUString > aAvailSvcs( getAvailableServices( aService, aLocale )); @@ -734,7 +734,7 @@ void LngSvcMgr::UpdateAll() const Locale *pAvailLocale = aAvailLocales.getConstArray(); for (i = 0; i < nAvailLocales; ++i) { - OUString aCfgLocaleStr( (LanguageTag(pAvailLocale[i])).getBcp47() ); + OUString aCfgLocaleStr( LanguageTag::convertToBcp47( pAvailLocale[i])); Sequence< OUString > aAvailSvcs( getAvailableServices( aService, pAvailLocale[i] )); @@ -1777,7 +1777,7 @@ bool LngSvcMgr::SaveCfgSvcs( const OUString &rServiceName ) aCfgAny <<= aSvcImplNames; DBG_ASSERT( aCfgAny.hasValue(), "missing value for 'Any' type" ); - OUString aCfgLocaleStr( (LanguageTag(pLocale[i])).getBcp47() ); + OUString aCfgLocaleStr( LanguageTag::convertToBcp47( pLocale[i])); pValue->Value = aCfgAny; pValue->Name = aNodeName + "/" + aCfgLocaleStr; pValue++; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits