[Libreoffice-commits] core.git: connectivity/source

Stephan Bergmann sbergman at redhat.com
Tue Jul 11 07:41:11 UTC 2017


 connectivity/source/drivers/firebird/DatabaseMetaData.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 287e5033f3dc317ae3adf4a4113ca729e7ab243c
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Jul 11 09:40:33 2017 +0200

    loplugin:unnecessaryparen
    
    Change-Id: I6ea2cf715095e5f686fa8a4262682553e9a293ac

diff --git a/connectivity/source/drivers/firebird/DatabaseMetaData.cxx b/connectivity/source/drivers/firebird/DatabaseMetaData.cxx
index 802316fa84dc..be811407e5e9 100644
--- a/connectivity/source/drivers/firebird/DatabaseMetaData.cxx
+++ b/connectivity/source/drivers/firebird/DatabaseMetaData.cxx
@@ -1199,7 +1199,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumns(
 
         // 9. Decimal digits (scale)
         // fb stores a negative number
-        aCurrentRow[9] = new ORowSetValueDecorator( (sal_Int16) -(aScale) );
+        aCurrentRow[9] = new ORowSetValueDecorator( (sal_Int16) -aScale );
 
         // 11. Nullable
         if (xRow->getShort(11))


More information about the Libreoffice-commits mailing list