diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:29:14 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:29:14 +0100 |
commit | 6070aaa47d6cede11f8cc0b54ed726fc45cb4a74 (patch) | |
tree | fe9c64b200eb663fd2fd82cb7d66d17ea199b53e /basic/source/sbx/sbxconv.hxx | |
parent | 9bd84cfb52eac91ee4bd1376f1a4b053afc24ab5 (diff) |
More loplugin:cstylecast: basic
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: I20b38196ee1b6a34384dc46d9de1b6e1b44947ae
Diffstat (limited to 'basic/source/sbx/sbxconv.hxx')
-rw-r--r-- | basic/source/sbx/sbxconv.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/basic/source/sbx/sbxconv.hxx b/basic/source/sbx/sbxconv.hxx index 88d066513be4..8a8fd98a7a6d 100644 --- a/basic/source/sbx/sbxconv.hxx +++ b/basic/source/sbx/sbxconv.hxx @@ -70,12 +70,12 @@ sal_Int64 ImpGetCurrency( const SbxValues* ); void ImpPutCurrency( SbxValues*, const sal_Int64 ); inline sal_Int64 ImpDoubleToCurrency( double d ) - { if (d > 0) return (sal_Int64)( d * CURRENCY_FACTOR + 0.5); - else return (sal_Int64)( d * CURRENCY_FACTOR - 0.5); + { if (d > 0) return static_cast<sal_Int64>( d * CURRENCY_FACTOR + 0.5); + else return static_cast<sal_Int64>( d * CURRENCY_FACTOR - 0.5); } inline double ImpCurrencyToDouble( const sal_Int64 r ) - { return (double)r / (double)CURRENCY_FACTOR; } + { return static_cast<double>(r) / double(CURRENCY_FACTOR); } // SBXDEC.CXX |