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

Stephan Bergmann sbergman at redhat.com
Thu Nov 10 10:50:40 UTC 2016


 connectivity/source/drivers/firebird/PreparedStatement.cxx |   11 ++++++++++-
 connectivity/source/drivers/firebird/PreparedStatement.hxx |    7 -------
 2 files changed, 10 insertions(+), 8 deletions(-)

New commits:
commit 25edea06374e5283f28c3ea9a29c470c575f3364
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Nov 10 11:50:02 2016 +0100

    loplugin:staticmethods
    
    Change-Id: Id7d7bb572466bcc803ac424cd8ddb64205a1c273

diff --git a/connectivity/source/drivers/firebird/PreparedStatement.cxx b/connectivity/source/drivers/firebird/PreparedStatement.cxx
index 2802be6..6ff2994 100644
--- a/connectivity/source/drivers/firebird/PreparedStatement.cxx
+++ b/connectivity/source/drivers/firebird/PreparedStatement.cxx
@@ -318,7 +318,14 @@ Reference< XResultSet > SAL_CALL OPreparedStatement::executeQuery()
     return m_xResultSet;
 }
 
-sal_Int64 OPreparedStatement::toNumericWithoutDecimalPlace(const OUString& sSource)
+namespace {
+
+/**
+ * Take out the number part of a fix point decimal without
+ * the information of where is the fracional part from a
+ * string representation of a number. (e.g. 54.654 -> 54654)
+ */
+sal_Int64 toNumericWithoutDecimalPlace(const OUString& sSource)
 {
     OUString sNumber(sSource);
 
@@ -344,6 +351,8 @@ sal_Int64 OPreparedStatement::toNumericWithoutDecimalPlace(const OUString& sSour
     }
 }
 
+}
+
 //----- XParameters -----------------------------------------------------------
 void SAL_CALL OPreparedStatement::setNull(sal_Int32 nIndex, sal_Int32 /*nSqlType*/)
     throw(SQLException, RuntimeException, std::exception)
diff --git a/connectivity/source/drivers/firebird/PreparedStatement.hxx b/connectivity/source/drivers/firebird/PreparedStatement.hxx
index 04ba792..d98e46d 100644
--- a/connectivity/source/drivers/firebird/PreparedStatement.hxx
+++ b/connectivity/source/drivers/firebird/PreparedStatement.hxx
@@ -79,13 +79,6 @@ namespace connectivity
              */
             void closeBlobAfterWriting(isc_blob_handle& rBlobHandle);
 
-            /**
-             * Take out the number part of a fix point decimal without
-             * the information of where is the fracional part from a
-             * string representation of a number. (e.g. 54.654 -> 54654)
-             */
-            sal_Int64 toNumericWithoutDecimalPlace(const OUString& sSource);
-
         protected:
             virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,
                                                                    const css::uno::Any& rValue)


More information about the Libreoffice-commits mailing list