summaryrefslogtreecommitdiff
path: root/cui/source/options/optgdlg.cxx
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-02 09:35:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-02 10:27:52 +0200
commitab6dbb228a703fb289733d285e93415521bc5202 (patch)
treed5d4905ab1fdcfffb59fdbced4d8d71bb4079515 /cui/source/options/optgdlg.cxx
parent2e3afaebd027d0280b871c3515c4999b7912692a (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/optgdlg.cxx')
-rw-r--r--cui/source/options/optgdlg.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx
index 743a64ad4b7f..812579c35b4a 100644
--- a/cui/source/options/optgdlg.cxx
+++ b/cui/source/options/optgdlg.cxx
@@ -1629,12 +1629,12 @@ void OfaLanguagesTabPage::Reset( const SfxItemSet* rSet )
LocaleSettingHdl(*m_xLocaleSettingLB->get_widget());
// configured currency, for example, USD-en-US or EUR-de-DE, or empty for locale default
- OUString aAbbrev;
- LanguageType eLang;
const NfCurrencyEntry* pCurr = nullptr;
OUString sCurrency = pLangConfig->aSysLocaleOptions.GetCurrencyConfigString();
if ( !sCurrency.isEmpty() )
{
+ LanguageType eLang;
+ OUString aAbbrev;
SvtSysLocaleOptions::GetCurrencyAbbrevAndLanguage( aAbbrev, eLang, sCurrency );
pCurr = SvNumberFormatter::GetCurrencyEntry( aAbbrev, eLang );
}