connectivity/source/drivers/firebird/DatabaseMetaData.cxx      |    2 +-
 connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx |    2 +-
 dbaccess/source/ui/misc/WCopyTable.cxx                         |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 23a9dffb84a75e1a50016409779d8d8a89d5f554
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Thu Sep 12 17:18:09 2019 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Thu Sep 12 22:04:26 2019 +0200

    cid#1453559 silence Unchecked return value
    cid#1453560 silence Unchecked return value
    cid#1453562 silence Unchecked return value
    
    Change-Id: I6b7dc42d6f2ebd8abb47fb71805c66c7f45d7748
    Reviewed-on: https://gerrit.libreoffice.org/78838
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@redhat.com>

diff --git a/connectivity/source/drivers/firebird/DatabaseMetaData.cxx 
b/connectivity/source/drivers/firebird/DatabaseMetaData.cxx
index 76d32e70ba8d..74015586c093 100644
--- a/connectivity/source/drivers/firebird/DatabaseMetaData.cxx
+++ b/connectivity/source/drivers/firebird/DatabaseMetaData.cxx
@@ -601,7 +601,7 @@ OUString SAL_CALL 
ODatabaseMetaData::getDatabaseProductVersion(  )
     uno::Reference< XStatement > xSelect = m_pConnection->createStatement();
 
     uno::Reference< XResultSet > xRs = xSelect->executeQuery("SELECT 
rdb$get_context('SYSTEM', 'ENGINE_VERSION') as version from rdb$database");
-    xRs->next(); // first and only row
+    (void)xRs->next(); // first and only row
     uno::Reference< XRow > xRow( xRs, UNO_QUERY_THROW );
     return xRow->getString(1);
 }
diff --git a/connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx 
b/connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx
index a57f10720104..d9c7f81f9139 100644
--- a/connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx
+++ b/connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx
@@ -364,7 +364,7 @@ OUString SAL_CALL ODatabaseMetaData::getUserName()
     Reference<XStatement> statement = m_rConnection.createStatement();
     Reference<XResultSet> rs = statement->executeQuery("select user()");
     Reference<XRow> xRow(rs, UNO_QUERY_THROW);
-    rs->next(); // the first and only result
+    (void)rs->next(); // the first and only result
     // e.g. root@localhost
     OUString userWithConnection = xRow->getString(1);
     sal_Int32 nIndexOfAt = userWithConnection.indexOf("@");
diff --git a/dbaccess/source/ui/misc/WCopyTable.cxx 
b/dbaccess/source/ui/misc/WCopyTable.cxx
index d5bb45130773..e7e94c921fc1 100644
--- a/dbaccess/source/ui/misc/WCopyTable.cxx
+++ b/dbaccess/source/ui/misc/WCopyTable.cxx
@@ -1178,7 +1178,7 @@ Reference< XPropertySet > OCopyTableWizard::createTable()
             {
                 Reference< XStatement > xSelect = 
m_xDestConnection->createStatement();
                 Reference< XResultSet > xRs = xSelect->executeQuery("select 
database()");
-                xRs->next(); // first and only result
+                (void)xRs->next(); // first and only result
                 Reference< XRow > xRow( xRs, UNO_QUERY_THROW );
                 sSchema = xRow->getString(1);
             }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to