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

Caolán McNamara caolanm at redhat.com
Fri Jan 13 13:47:02 UTC 2017


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

New commits:
commit 6bd96eda065f819e1b147e9a94b337b6cc21e626
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Jan 13 13:46:12 2017 +0000

    coverity#1371289 avoid the need for an assignment
    
    Change-Id: Ia0efc427d9996eb8414821d07f7e760fb1b35246

diff --git a/connectivity/source/drivers/postgresql/pq_statement.cxx b/connectivity/source/drivers/postgresql/pq_statement.cxx
index 5aaef39..55715b0 100644
--- a/connectivity/source/drivers/postgresql/pq_statement.cxx
+++ b/connectivity/source/drivers/postgresql/pq_statement.cxx
@@ -797,7 +797,7 @@ Reference< XResultSet > getGeneratedValuesFromLastInsert(
                     {
                         // it even was no autovalue, no sense to continue as we can't query the
                         // inserted row
-                        buf = OUStringBuffer();
+                        buf.setLength(0);
                         break;
                     }
                 }


More information about the Libreoffice-commits mailing list