From 7b99cdb2d77a3feaf9b782c1e656f2d922e2746e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 5 Nov 2019 15:20:22 +0200 Subject: loplugin:indentation find broken if statements so I don't read the "then" block as being a sequential statements Change-Id: Ib2004acd3518bd4ebd2246f02a26c2c0a8bbab4c Reviewed-on: https://gerrit.libreoffice.org/82069 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basic/source/sbx/sbxconv.hxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'basic/source/sbx/sbxconv.hxx') 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( d * CURRENCY_FACTOR + 0.5); - else return static_cast( d * CURRENCY_FACTOR - 0.5); - } +{ + if (d > 0) + return static_cast( d * CURRENCY_FACTOR + 0.5); + else + return static_cast( d * CURRENCY_FACTOR - 0.5); +} inline double ImpCurrencyToDouble( const sal_Int64 r ) { return static_cast(r) / double(CURRENCY_FACTOR); } -- cgit