diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-06-26 09:02:13 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-06-26 11:23:34 +0200 |
commit | 2dac65c50481684863433d67999c0ecf81c67e6b (patch) | |
tree | 92efd208d803f09adbdcb2eefcc2e5704413b6ca /sc/qa/unit/ucalc_pivottable.cxx | |
parent | eff395c2d2a3026d9d65121e273af336fb0cfb19 (diff) |
coverity#1209000 Unchecked return value
Change-Id: I1d2a51258deb801ae768dd8b1b44c2c12f41c995
Reviewed-on: https://gerrit.libreoffice.org/56441
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/qa/unit/ucalc_pivottable.cxx')
-rw-r--r-- | sc/qa/unit/ucalc_pivottable.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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(); |