diff options
author | Noel <noelgrandin@gmail.com> | 2020-10-02 09:35:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-10-02 10:27:52 +0200 |
commit | ab6dbb228a703fb289733d285e93415521bc5202 (patch) | |
tree | d5d4905ab1fdcfffb59fdbced4d8d71bb4079515 /cui/source/options/optupdt.cxx | |
parent | 2e3afaebd027d0280b871c3515c4999b7912692a (diff) |
loplugin:reducevarscope in cui
Change-Id: Iedfda307d149fe2a5a196c83d3ea02b618e7dd23
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103809
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui/source/options/optupdt.cxx')
-rw-r--r-- | cui/source/options/optupdt.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/options/optupdt.cxx b/cui/source/options/optupdt.cxx index 203e98949e5a..897f92505603 100644 --- a/cui/source/options/optupdt.cxx +++ b/cui/source/options/optupdt.cxx @@ -91,8 +91,6 @@ SvxOnlineUpdateTabPage::~SvxOnlineUpdateTabPage() void SvxOnlineUpdateTabPage::UpdateLastCheckedText() { - OUString aDateStr; - OUString aTimeStr; OUString aText; sal_Int64 lastChecked = 0; @@ -125,9 +123,11 @@ void SvxOnlineUpdateTabPage::UpdateLastCheckedText() const Date& rNullDate = pNumberFormatter->GetNullDate(); sal_uInt32 nFormat = pNumberFormatter->GetStandardFormat( SvNumFormatType::DATE, eUILang ); + OUString aDateStr; pNumberFormatter->GetOutputString( aDate - rNullDate, nFormat, aDateStr, &pColor ); nFormat = pNumberFormatter->GetStandardFormat( SvNumFormatType::TIME, eUILang ); + OUString aTimeStr; pNumberFormatter->GetOutputString( aTime.GetTimeInDays(), nFormat, aTimeStr, &pColor ); pNumberFormatter.reset(); |