summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-10-17 22:29:01 +0200
committerEike Rathke <erack@redhat.com>2016-10-17 22:34:52 +0200
commite899f049edd46c49c2d4265c24b1ee4c82020406 (patch)
tree7a6a35119ac1c6859d6c714a0a059e1059062500 /svl
parent352ddafd05c5de4335746d52c79e8cf9689cba86 (diff)
let LanguageTag::convertToLocale() decide when to create a temporary
Change-Id: Id4e718eb23d4acf2ee7bddc4da1cd4e8e811be78
Diffstat (limited to 'svl')
-rw-r--r--svl/source/numbers/numfmuno.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/source/numbers/numfmuno.cxx b/svl/source/numbers/numfmuno.cxx
index cd7880488d81..17210607d24f 100644
--- a/svl/source/numbers/numfmuno.cxx
+++ b/svl/source/numbers/numfmuno.cxx
@@ -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)