From 8456c2ba408b3bed160d3e5f050738301b225bd5 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 12 Jan 2018 20:13:01 +0100 Subject: More loplugin:cstylecast: tools auto-rewrite with "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: Ifb9ebc9623c8df14ea0d4c907001bd16c5b9ae59 --- include/tools/bigint.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/tools/bigint.hxx') diff --git a/include/tools/bigint.hxx b/include/tools/bigint.hxx index 928ee7b77746..90fe56c8abce 100644 --- a/include/tools/bigint.hxx +++ b/include/tools/bigint.hxx @@ -132,7 +132,7 @@ public: inline BigInt::operator sal_Int16() const { if ( !bIsBig && nVal >= SAL_MIN_INT16 && nVal <= SAL_MAX_INT16 ) - return (sal_Int16)nVal; + return static_cast(nVal); assert(false && "out of range"); return 0; } @@ -140,7 +140,7 @@ inline BigInt::operator sal_Int16() const inline BigInt::operator sal_uInt16() const { if ( !bIsBig && nVal >= 0 && nVal <= SAL_MAX_UINT16 ) - return (sal_uInt16)nVal; + return static_cast(nVal); assert(false && "out of range"); return 0; } @@ -156,7 +156,7 @@ inline BigInt::operator sal_Int32() const inline BigInt::operator sal_uInt32() const { if ( !bIsBig && nVal >= 0 ) - return (sal_uInt32)nVal; + return static_cast(nVal); assert(false && "out of range"); return 0; } -- cgit