diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:26:29 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:26:29 +0100 |
commit | 71a6caf49b1805a5a9ff29fe8f928a4551aa616b (patch) | |
tree | dd2c8bf96c26d537ffedb32c5bc5f913192234d6 /include | |
parent | f6e256c4825a6d7c9d7125a4100c10f8c4de750a (diff) |
More loplugin:cstylecast: cppuhelper
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: I3966d302241a52014aaad41f72924a2095ea6621
Diffstat (limited to 'include')
-rw-r--r-- | include/cppuhelper/interfacecontainer.h | 2 | ||||
-rw-r--r-- | include/cppuhelper/proptypehlp.hxx | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/include/cppuhelper/interfacecontainer.h b/include/cppuhelper/interfacecontainer.h index 58298e3e9490..67e6353f4a2d 100644 --- a/include/cppuhelper/interfacecontainer.h +++ b/include/cppuhelper/interfacecontainer.h @@ -501,7 +501,7 @@ struct SAL_WARN_UNUSED OBroadcastHelperVar struct hashType_Impl { size_t operator()(const css::uno::Type & s) const - { return (size_t) s.getTypeName().hashCode(); } + { return static_cast<size_t>(s.getTypeName().hashCode()); } }; diff --git a/include/cppuhelper/proptypehlp.hxx b/include/cppuhelper/proptypehlp.hxx index d598f9d1f2aa..5ecdbc5e0411 100644 --- a/include/cppuhelper/proptypehlp.hxx +++ b/include/cppuhelper/proptypehlp.hxx @@ -88,7 +88,7 @@ inline void SAL_CALL convertPropertyValue( sal_Int64 & i , const css::uno::Any { sal_Unicode c; c = *static_cast<sal_Unicode const *>(a.getValue()); - i = ( sal_Int64 ) c; + i = static_cast<sal_Int64>(c); break; } default: @@ -109,7 +109,7 @@ inline void SAL_CALL convertPropertyValue( sal_uInt64 & i , const css::uno::Any { sal_Unicode c; c = *static_cast<sal_Unicode const *>(a.getValue()); - i = ( sal_uInt64 ) c; + i = static_cast<sal_uInt64>(c); break; } default: @@ -129,7 +129,7 @@ inline void SAL_CALL convertPropertyValue( sal_Int32 & i , const css::uno::Any { sal_Unicode c; c = *static_cast<sal_Unicode const *>(a.getValue()); - i = ( sal_Int32 ) c; + i = static_cast<sal_Int32>(c); break; } default: @@ -149,7 +149,7 @@ inline void SAL_CALL convertPropertyValue( sal_uInt32 & i , const css::uno::Any { sal_Unicode c; c = *static_cast<sal_Unicode const *>(a.getValue()); - i = ( sal_uInt32 ) c; + i = static_cast<sal_uInt32>(c); break; } default: @@ -169,7 +169,7 @@ inline void SAL_CALL convertPropertyValue( sal_Int16 & i , const css::uno::Any { sal_Unicode c; c = *static_cast<sal_Unicode const *>(a.getValue()); - i = ( sal_Int16 ) c; + i = static_cast<sal_Int16>(c); break; } default: @@ -189,7 +189,7 @@ inline void SAL_CALL convertPropertyValue( sal_uInt16 & i , const css::uno::Any { sal_Unicode c; c = *static_cast<sal_Unicode const *>(a.getValue()); - i = ( sal_Int16 ) c; + i = static_cast<sal_Int16>(c); break; } default: @@ -237,7 +237,7 @@ inline void SAL_CALL convertPropertyValue( float &f , const css::uno::Any &a ) { sal_Unicode c; c = *static_cast<sal_Unicode const *>(a.getValue()); - f = ( float ) c; + f = static_cast<float>(c); break; } default: @@ -263,7 +263,7 @@ inline void SAL_CALL convertPropertyValue( double &d , const css::uno::Any &a ) { sal_Unicode c; c = *static_cast<sal_Unicode const *>(a.getValue()); - d = (double) c; + d = static_cast<double>(c); break; } default: |