[Libreoffice-commits] core.git: sc/qa
Caolán McNamara
caolanm at redhat.com
Tue Jun 26 09:23:56 UTC 2018
sc/qa/unit/ucalc_pivottable.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 2dac65c50481684863433d67999c0ecf81c67e6b
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Jun 26 09:02:13 2018 +0100
coverity#1209000 Unchecked return value
Change-Id: I1d2a51258deb801ae768dd8b1b44c2c12f41c995
Reviewed-on: https://gerrit.libreoffice.org/56441
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sc/qa/unit/ucalc_pivottable.cxx b/sc/qa/unit/ucalc_pivottable.cxx
index f069e731c77e..40c72e1b9bd3 100644
--- a/sc/qa/unit/ucalc_pivottable.cxx
+++ b/sc/qa/unit/ucalc_pivottable.cxx
@@ -267,7 +267,8 @@ void Test::testPivotTable()
// don't reload the cache which should force the copy to use the old data
// from the cache.
ScDPObject* pDPObj2 = new ScDPObject(*pDPObj);
- pDPs->InsertNewTable(pDPObj2);
+ bSuccess = pDPs->InsertNewTable(pDPObj2);
+ CPPUNIT_ASSERT_MESSAGE("failed to insert a new datapilot object into document", bSuccess);
aOutRange = pDPObj2->GetOutRange();
pDPObj2->ClearTableData();
More information about the Libreoffice-commits
mailing list