summaryrefslogtreecommitdiff
path: root/include/com
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:26:51 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:26:51 +0100
commit14d38072b5bc6ec83d14fe827209c3a65e35c154 (patch)
treea9cafd7e8403b4278fb50dc8860d0f2ca9b00c76 /include/com
parent71a6caf49b1805a5a9ff29fe8f928a4551aa616b (diff)
More loplugin:cstylecast: cppu
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: I8531b2dc474b257c63016c8ae80014c7322e5a71
Diffstat (limited to 'include/com')
-rw-r--r--include/com/sun/star/uno/Any.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/com/sun/star/uno/Any.hxx b/include/com/sun/star/uno/Any.hxx
index 3021fb2bade0..2467a9c3d1f4 100644
--- a/include/com/sun/star/uno/Any.hxx
+++ b/include/com/sun/star/uno/Any.hxx
@@ -390,7 +390,7 @@ inline bool SAL_CALL operator >>= ( const Any & rAny, sal_uInt16 & value )
switch (rAny.pType->eTypeClass)
{
case typelib_TypeClass_BYTE:
- value = (sal_uInt16)( * static_cast< const sal_Int8 * >( rAny.pData ) );
+ value = static_cast<sal_uInt16>( * static_cast< const sal_Int8 * >( rAny.pData ) );
return true;
case typelib_TypeClass_SHORT:
case typelib_TypeClass_UNSIGNED_SHORT:
@@ -431,10 +431,10 @@ inline bool SAL_CALL operator >>= ( const Any & rAny, sal_uInt32 & value )
switch (rAny.pType->eTypeClass)
{
case typelib_TypeClass_BYTE:
- value = (sal_uInt32)( * static_cast< const sal_Int8 * >( rAny.pData ) );
+ value = static_cast<sal_uInt32>( * static_cast< const sal_Int8 * >( rAny.pData ) );
return true;
case typelib_TypeClass_SHORT:
- value = (sal_uInt32)( * static_cast< const sal_Int16 * >( rAny.pData ) );
+ value = static_cast<sal_uInt32>( * static_cast< const sal_Int16 * >( rAny.pData ) );
return true;
case typelib_TypeClass_UNSIGNED_SHORT:
value = * static_cast< const sal_uInt16 * >( rAny.pData );
@@ -484,16 +484,16 @@ inline bool SAL_CALL operator >>= ( const Any & rAny, sal_uInt64 & value )
switch (rAny.pType->eTypeClass)
{
case typelib_TypeClass_BYTE:
- value = (sal_uInt64)( * static_cast< const sal_Int8 * >( rAny.pData ) );
+ value = static_cast<sal_uInt64>( * static_cast< const sal_Int8 * >( rAny.pData ) );
return true;
case typelib_TypeClass_SHORT:
- value = (sal_uInt64)( * static_cast< const sal_Int16 * >( rAny.pData ) );
+ value = static_cast<sal_uInt64>( * static_cast< const sal_Int16 * >( rAny.pData ) );
return true;
case typelib_TypeClass_UNSIGNED_SHORT:
value = * static_cast< const sal_uInt16 * >( rAny.pData );
return true;
case typelib_TypeClass_LONG:
- value = (sal_uInt64)( * static_cast< const sal_Int32 * >( rAny.pData ) );
+ value = static_cast<sal_uInt64>( * static_cast< const sal_Int32 * >( rAny.pData ) );
return true;
case typelib_TypeClass_UNSIGNED_LONG:
value = * static_cast< const sal_uInt32 * >( rAny.pData );