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

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

Change-Id: Id4e718eb23d4acf2ee7bddc4da1cd4e8e811be78
üst 352ddafd
......@@ -1499,7 +1499,7 @@ css::lang::Locale SAL_CALL
SfxDocumentMetaData::getLanguage() throw (css::uno::RuntimeException, std::exception)
{
::osl::MutexGuard g(m_aMutex);
css::lang::Locale loc( LanguageTag( getMetaText("dc:language")).getLocale( false));
css::lang::Locale loc( LanguageTag::convertToLocale( getMetaText("dc:language"), false));
return loc;
}
......
......@@ -475,7 +475,7 @@ void SfxDocTplService_Impl::getDefaultLocale()
::osl::MutexGuard aGuard( maMutex );
if ( !mbLocaleSet )
{
maLocale = LanguageTag( utl::ConfigManager::getLocale()).getLocale( false);
maLocale = LanguageTag::convertToLocale( utl::ConfigManager::getLocale(), false);
mbLocaleSet = true;
}
}
......
......@@ -713,7 +713,7 @@ uno::Any SAL_CALL SvNumberFormatObj::getPropertyValue( const OUString& aProperty
}
else if (aPropertyName == PROPERTYNAME_LOCALE)
{
lang::Locale aLocale( LanguageTag( pFormat->GetLanguage()).getLocale( false));
lang::Locale aLocale( LanguageTag::convertToLocale( pFormat->GetLanguage(), false));
aRet <<= aLocale;
}
else if (aPropertyName == PROPERTYNAME_TYPE)
......
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