diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:23:23 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:23:23 +0100 |
commit | cf8b8cad053e0e9783cdc8f08ce886e2ae4b7eb0 (patch) | |
tree | acb5e32f7abdb40975076487122c7fa1d05be0b7 /framework/source/accelerators | |
parent | faf01b8d54737dfbb318709180966e84c7fd5614 (diff) |
More loplugin:cstylecast: framework
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: I8981ef6de675bf10c103e1af0afccd620762268d
Diffstat (limited to 'framework/source/accelerators')
-rw-r--r-- | framework/source/accelerators/acceleratorconfiguration.cxx | 4 | ||||
-rw-r--r-- | framework/source/accelerators/keymapping.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/framework/source/accelerators/acceleratorconfiguration.cxx b/framework/source/accelerators/acceleratorconfiguration.cxx index ecc33938ab75..08aa8b548bf3 100644 --- a/framework/source/accelerators/acceleratorconfiguration.cxx +++ b/framework/source/accelerators/acceleratorconfiguration.cxx @@ -177,7 +177,7 @@ css::uno::Sequence< css::uno::Any > SAL_CALL XMLBasedAcceleratorConfiguration::g throw css::lang::IllegalArgumentException( "Empty command strings are not allowed here.", static_cast< ::cppu::OWeakObject* >(this), - (sal_Int16)i); + static_cast<sal_Int16>(i)); if (!rCache.hasCommand(rCommand)) continue; @@ -714,7 +714,7 @@ css::uno::Sequence< css::uno::Any > SAL_CALL XCUBasedAcceleratorConfiguration::g throw css::lang::IllegalArgumentException( "Empty command strings are not allowed here.", static_cast< ::cppu::OWeakObject* >(this), - (sal_Int16)i); + static_cast<sal_Int16>(i)); if (!rCache.hasCommand(rCommand)) continue; diff --git a/framework/source/accelerators/keymapping.cxx b/framework/source/accelerators/keymapping.cxx index 22bee0d2ce88..8b1bc1307b17 100644 --- a/framework/source/accelerators/keymapping.cxx +++ b/framework/source/accelerators/keymapping.cxx @@ -197,7 +197,7 @@ bool KeyMapping::impl_st_interpretIdentifierAsPureKeyCode(const OUString& sIdent sal_Int32 nCode = sIdentifier.toInt32(); if (nCode > 0) { - rCode = (sal_uInt16)nCode; + rCode = static_cast<sal_uInt16>(nCode); return true; } |