diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-14 09:10:23 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-15 07:48:14 +0100 |
commit | c2429e3e95a4298f43c468f36a1a2832992dd40e (patch) | |
tree | f43bd173eabe863b896de6057b5aee2f92d808d5 /sd/source/ui/view/WindowUpdater.cxx | |
parent | b89f239aa9d3d4660380bbd0c893aecde0986032 (diff) |
loplugin:flatten in sd/source/ui/view
Change-Id: I28e75ec162cde89fe1aa7d85aecce7ce80878d88
Reviewed-on: https://gerrit.libreoffice.org/67828
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/view/WindowUpdater.cxx')
-rw-r--r-- | sd/source/ui/view/WindowUpdater.cxx | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/sd/source/ui/view/WindowUpdater.cxx b/sd/source/ui/view/WindowUpdater.cxx index a49928184dd8..1d00dd849bca 100644 --- a/sd/source/ui/view/WindowUpdater.cxx +++ b/sd/source/ui/view/WindowUpdater.cxx @@ -85,33 +85,33 @@ void WindowUpdater::Update ( void WindowUpdater::UpdateWindow (OutputDevice* pDevice) const { - if (pDevice != nullptr) - { - SvtCTLOptions::TextNumerals aNumeralMode (maCTLOptions.GetCTLTextNumerals()); - - LanguageType aLanguage; - // Now this is a bit confusing. The numerals in arabic languages - // are Hindi numerals and what the western world generally uses are - // arabic numerals. The digits used in the Hindi language are not - // used at all. - switch (aNumeralMode) - { - case SvtCTLOptions::NUMERALS_HINDI: - aLanguage = LANGUAGE_ARABIC_SAUDI_ARABIA; - break; - - case SvtCTLOptions::NUMERALS_SYSTEM: - aLanguage = LANGUAGE_SYSTEM; - break; - - case SvtCTLOptions::NUMERALS_ARABIC: - default: - aLanguage = LANGUAGE_ENGLISH; - break; - } + if (pDevice == nullptr) + return; - pDevice->SetDigitLanguage (aLanguage); + SvtCTLOptions::TextNumerals aNumeralMode (maCTLOptions.GetCTLTextNumerals()); + + LanguageType aLanguage; + // Now this is a bit confusing. The numerals in arabic languages + // are Hindi numerals and what the western world generally uses are + // arabic numerals. The digits used in the Hindi language are not + // used at all. + switch (aNumeralMode) + { + case SvtCTLOptions::NUMERALS_HINDI: + aLanguage = LANGUAGE_ARABIC_SAUDI_ARABIA; + break; + + case SvtCTLOptions::NUMERALS_SYSTEM: + aLanguage = LANGUAGE_SYSTEM; + break; + + case SvtCTLOptions::NUMERALS_ARABIC: + default: + aLanguage = LANGUAGE_ENGLISH; + break; } + + pDevice->SetDigitLanguage (aLanguage); } void WindowUpdater::ConfigurationChanged( utl::ConfigurationBroadcaster*, ConfigurationHints ) |