let LanguageTag::convertToLocale() decide when to create a temporary

Change-Id: Iaefddb13192aff1aad912ac9f908c3d12236b94d
This commit is contained in:
Eike Rathke
2016-10-17 22:06:07 +02:00
parent ab6f04ded9
commit 75c2ecc249

View File

@@ -2412,7 +2412,7 @@ bool SvxLanguageItem::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const
rVal <<= (sal_Int16)(GetValue());
break;
case MID_LANG_LOCALE:
lang::Locale aRet( LanguageTag( GetValue()).getLocale( false));
lang::Locale aRet( LanguageTag::convertToLocale( GetValue(), false));
rVal <<= aRet;
break;
}