summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-09-12 17:18:09 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-09-12 22:04:26 +0200
commit23a9dffb84a75e1a50016409779d8d8a89d5f554 (patch)
tree7209503094999e062f98012285b90560f0838be4 /connectivity
parent9463ee0a105e13f1f5f6c71fac3549abe5aa79d0 (diff)
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 <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/firebird/DatabaseMetaData.cxx2
-rw-r--r--connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx2
2 files changed, 2 insertions, 2 deletions
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("@");