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

Stephan Bergmann sbergman at redhat.com
Thu Nov 10 10:48:30 UTC 2016


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

New commits:
commit be8d620464b9627b6034238270440fcaff0965e0
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Nov 10 11:48:04 2016 +0100

    loplugin:stringconstant
    
    Change-Id: I0eb2b9986840b1bd5bc892da23c56205047bc120

diff --git a/connectivity/source/drivers/firebird/PreparedStatement.cxx b/connectivity/source/drivers/firebird/PreparedStatement.cxx
index f9adc0b..2802be6 100644
--- a/connectivity/source/drivers/firebird/PreparedStatement.cxx
+++ b/connectivity/source/drivers/firebird/PreparedStatement.cxx
@@ -323,7 +323,7 @@ sal_Int64 OPreparedStatement::toNumericWithoutDecimalPlace(const OUString& sSour
     OUString sNumber(sSource);
 
     // cut off leading 0 eventually ( eg. 0.567 -> .567)
-    sSource.startsWith(OUString("0"), &sNumber);
+    sSource.startsWith("0", &sNumber);
 
     sal_Int32 nDotIndex = sNumber.indexOf((sal_Unicode)'.');
 


More information about the Libreoffice-commits mailing list