diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:13:01 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:13:01 +0100 |
commit | 8456c2ba408b3bed160d3e5f050738301b225bd5 (patch) | |
tree | f5b4ba22b4c1e1ccfef3c5430b627ffd0bfc9ec7 /include/tools/bigint.hxx | |
parent | 8af176d7776938249f6e59dee3ed4f5c05edbebc (diff) |
More loplugin:cstylecast: tools
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: Ifb9ebc9623c8df14ea0d4c907001bd16c5b9ae59
Diffstat (limited to 'include/tools/bigint.hxx')
-rw-r--r-- | include/tools/bigint.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
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<sal_Int16>(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<sal_uInt16>(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<sal_uInt32>(nVal); assert(false && "out of range"); return 0; } |