summaryrefslogtreecommitdiff
path: root/dbaccess/qa
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-04-03 10:16:47 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-04-03 14:23:38 +0200
commit5ab28e4f7d17b73eb564b330d89c25a7ee0c159c (patch)
tree6cbd8a2d7012f93ee525a14d9666adc6eda779f2 /dbaccess/qa
parent4f62a5cc66dc56cd208a76a7d85f6d15b9196e62 (diff)
coverity#1433774 Unchecked return value
Change-Id: I401f469a07548752d51ac6a8b2e9b30770add156 Reviewed-on: https://gerrit.libreoffice.org/52296 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'dbaccess/qa')
-rw-r--r--dbaccess/qa/unit/hsql_binary_import.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/qa/unit/hsql_binary_import.cxx b/dbaccess/qa/unit/hsql_binary_import.cxx
index 3afe7bd55396..1378dcd7c549 100644
--- a/dbaccess/qa/unit/hsql_binary_import.cxx
+++ b/dbaccess/qa/unit/hsql_binary_import.cxx
@@ -60,7 +60,7 @@ void HsqlBinaryImportTest::testBinaryImport()
uno::Reference<XRow> xRow(xRes, UNO_QUERY_THROW);
// assert first row
- xRes->next();
+ CPPUNIT_ASSERT(xRes->next());
constexpr sal_Int16 idExpected = 1;
CPPUNIT_ASSERT_EQUAL(idExpected, xRow->getShort(1));
CPPUNIT_ASSERT_EQUAL(OUString{ "45.32" }, xRow->getString(2)); // numeric
@@ -74,7 +74,7 @@ void HsqlBinaryImportTest::testBinaryImport()
CPPUNIT_ASSERT_EQUAL(sal_Int16{ 1996 }, date.Year);
// assert second row
- xRes->next();
+ CPPUNIT_ASSERT(xRes->next());
constexpr sal_Int16 secondIdExpected = 2;
CPPUNIT_ASSERT_EQUAL(secondIdExpected, xRow->getShort(1)); // ID
CPPUNIT_ASSERT_EQUAL(OUString{ "54.12" }, xRow->getString(2)); // numeric