diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:12:36 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:12:36 +0100 |
commit | b7f0446d78923c46ab604ccaf48970a6b405ba5e (patch) | |
tree | 1ec06811d63d2ef0d10c54cd63cdf94dd90a6df0 /unotools/source/config/lingucfg.cxx | |
parent | d9384ef6e42419ecb77590c785eadf69e3d43428 (diff) |
More loplugin:cstylecast: unotools
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable
loplugin:cstylecast for some more cases" plus
solenv/clang-format/reformat-formatted-files
Change-Id: I40a3ff5a436766f8d16f154eff2726b4873a0eb1
Diffstat (limited to 'unotools/source/config/lingucfg.cxx')
-rw-r--r-- | unotools/source/config/lingucfg.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unotools/source/config/lingucfg.cxx b/unotools/source/config/lingucfg.cxx index 5e2bab397cf3..471a2c718c8b 100644 --- a/unotools/source/config/lingucfg.cxx +++ b/unotools/source/config/lingucfg.cxx @@ -394,7 +394,7 @@ uno::Any SvtLinguConfigItem::GetProperty( sal_Int32 nPropertyHandle ) const else if (pnVal) aRes <<= *pnVal; else if (plVal) - aRes <<= (sal_Int16)(sal_uInt16)*plVal; + aRes <<= static_cast<sal_Int16>(static_cast<sal_uInt16>(*plVal)); else if (pnInt32Val) aRes <<= *pnInt32Val; @@ -522,7 +522,7 @@ bool SvtLinguConfigItem::SetProperty( sal_Int32 nPropertyHandle, const uno::Any sal_Int16 nNew = sal_Int16(); if (rValue >>= nNew) { - if (nNew != (sal_uInt16)*plVal) + if (nNew != static_cast<sal_uInt16>(*plVal)) { *plVal = LanguageType(static_cast<sal_uInt16>(nNew)); bMod = true; |