From 14d38072b5bc6ec83d14fe827209c3a65e35c154 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 12 Jan 2018 20:26:51 +0100 Subject: More loplugin:cstylecast: cppu auto-rewrite with "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: I8531b2dc474b257c63016c8ae80014c7322e5a71 --- include/com/sun/star/uno/Any.hxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'include/com') 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( * 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( * 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( * 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( * 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( * 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( * static_cast< const sal_Int32 * >( rAny.pData ) ); return true; case typelib_TypeClass_UNSIGNED_LONG: value = * static_cast< const sal_uInt32 * >( rAny.pData ); -- cgit v1.2.3