diff options
Diffstat (limited to 'basic/source/sbx/sbxconv.hxx')
-rw-r--r-- | basic/source/sbx/sbxconv.hxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/basic/source/sbx/sbxconv.hxx b/basic/source/sbx/sbxconv.hxx index 8a8fd98a7a6d..378c752b88d9 100644 --- a/basic/source/sbx/sbxconv.hxx +++ b/basic/source/sbx/sbxconv.hxx @@ -70,9 +70,12 @@ sal_Int64 ImpGetCurrency( const SbxValues* ); void ImpPutCurrency( SbxValues*, const sal_Int64 ); inline sal_Int64 ImpDoubleToCurrency( double d ) - { if (d > 0) return static_cast<sal_Int64>( d * CURRENCY_FACTOR + 0.5); - else return static_cast<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 static_cast<double>(r) / double(CURRENCY_FACTOR); } |