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

Caolán McNamara caolanm at redhat.com
Sat Nov 12 12:30:26 UTC 2016


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

New commits:
commit 1ef8ab3ed7930cec2569ee576a409c7a6bbb42e9
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sat Nov 12 12:23:08 2016 +0000

    coverity#1394295 Unchecked return value
    
    Change-Id: Ie4edbe91ab4f9b9910fc895e47ea8b9fdfc00b7e

diff --git a/connectivity/source/drivers/firebird/PreparedStatement.cxx b/connectivity/source/drivers/firebird/PreparedStatement.cxx
index 6ff2994..2885193 100644
--- a/connectivity/source/drivers/firebird/PreparedStatement.cxx
+++ b/connectivity/source/drivers/firebird/PreparedStatement.cxx
@@ -330,7 +330,7 @@ sal_Int64 toNumericWithoutDecimalPlace(const OUString& sSource)
     OUString sNumber(sSource);
 
     // cut off leading 0 eventually ( eg. 0.567 -> .567)
-    sSource.startsWith("0", &sNumber);
+    (void)sSource.startsWith("0", &sNumber);
 
     sal_Int32 nDotIndex = sNumber.indexOf((sal_Unicode)'.');
 


More information about the Libreoffice-commits mailing list