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 /svtools | |
parent | 677f13f0e2567bcf667b016ef5e173766cc89cbf (diff) |
get rid of unnecessary LocaleDataWrapper temporary instances
Change-Id: I17d9a502565d445b0eab9ef6e9123661850292b7
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/contnr/DocumentInfoPreview.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/contnr/DocumentInfoPreview.cxx b/svtools/source/contnr/DocumentInfoPreview.cxx index 048b0d834618..b538cbad4a08 100644 --- a/svtools/source/contnr/DocumentInfoPreview.cxx +++ b/svtools/source/contnr/DocumentInfoPreview.cxx @@ -155,10 +155,10 @@ void ODocumentInfoPreview::insertDateTime( Time( value.Hours, value.Minutes, value.Seconds, value.HundredthSeconds)); if (aToolsDT.IsValidAndGregorian()) { - LocaleDataWrapper aLocaleWrapper( Application::GetSettings().GetLanguageTag().getLocale() ); - rtl::OUStringBuffer buf(aLocaleWrapper.getDate(aToolsDT)); + const LocaleDataWrapper& rLocaleWrapper( Application::GetSettings().GetLocaleDataWrapper() ); + rtl::OUStringBuffer buf(rLocaleWrapper.getDate(aToolsDT)); buf.appendAscii(RTL_CONSTASCII_STRINGPARAM(", ")); - buf.append(aLocaleWrapper.getTime(aToolsDT)); + buf.append(rLocaleWrapper.getTime(aToolsDT)); insertEntry(m_pInfoTable->GetString(id), buf.makeStringAndClear()); } } |