From 2dac65c50481684863433d67999c0ecf81c67e6b Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 26 Jun 2018 09:02:13 +0100 Subject: coverity#1209000 Unchecked return value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I1d2a51258deb801ae768dd8b1b44c2c12f41c995 Reviewed-on: https://gerrit.libreoffice.org/56441 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sc/qa/unit/ucalc_pivottable.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sc/qa/unit/ucalc_pivottable.cxx') 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(); -- cgit