diff options
author | Eike Rathke <erack@redhat.com> | 2012-11-22 19:48:13 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2012-11-22 19:50:20 +0100 |
commit | 1b329fd5ccc0ff270d776dfd03571da3f4d6f34d (patch) | |
tree | 160192cce8a16201503843650491f05b9b15a844 /cui/source/options | |
parent | 677f13f0e2567bcf667b016ef5e173766cc89cbf (diff) |
get rid of unnecessary LocaleDataWrapper temporary instances
Change-Id: I17d9a502565d445b0eab9ef6e9123661850292b7
Diffstat (limited to 'cui/source/options')
-rw-r--r-- | cui/source/options/optgdlg.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx index 38d050d55b24..f4d8abab76d7 100644 --- a/cui/source/options/optgdlg.cxx +++ b/cui/source/options/optgdlg.cxx @@ -1696,10 +1696,8 @@ void OfaLanguagesTabPage::Reset( const SfxItemSet& rSet ) OUString aDatePatternsString = pLangConfig->aSysLocaleOptions.GetDatePatternsConfigString(); if (aDatePatternsString.isEmpty()) { - Locale aTempLocale; - SvxLanguageToLocale( aTempLocale, Application::GetSettings().GetLanguageTag().getLanguageType()); - LocaleDataWrapper aLocaleWrapper( aTempLocale ); - aDatePatternsString = lcl_getDatePatternsConfigString( aLocaleWrapper); + const LocaleDataWrapper& rLocaleWrapper( Application::GetSettings().GetLocaleDataWrapper() ); + aDatePatternsString = lcl_getDatePatternsConfigString( rLocaleWrapper); } aDatePatternsED.SetText( aDatePatternsString); bReadonly = pLangConfig->aSysLocaleOptions.IsReadOnly(SvtSysLocaleOptions::E_DATEPATTERNS); |