diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-08-18 19:47:38 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-08-18 21:08:40 +0100 |
commit | 88c9133b16749e33872e358aedd81ebc81593e3a (patch) | |
tree | 47c218457d6b6818cf5f98f6a51c41b1603fa854 /svtools | |
parent | 0afe3e257e9d7b76e252b1022d7d0e4e0c940384 (diff) |
coverity#1371121 Unchecked return value
Change-Id: I1413b62112922af8d6872de413ca7decc0d75875
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/qa/unit/GraphicObjectTest.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svtools/qa/unit/GraphicObjectTest.cxx b/svtools/qa/unit/GraphicObjectTest.cxx index f17aeca1a4df..88041df09bd8 100644 --- a/svtools/qa/unit/GraphicObjectTest.cxx +++ b/svtools/qa/unit/GraphicObjectTest.cxx @@ -334,8 +334,8 @@ void GraphicObjectTest::testPdf() CPPUNIT_ASSERT_MESSAGE("Missing image", pGraphicObject); CPPUNIT_ASSERT(pGraphicObject->GetGraphic().getPdfData().hasElements()); - pGraphicObject->SwapOut(); - pGraphicObject->SwapIn(); + CPPUNIT_ASSERT(pGraphicObject->SwapOut()); + CPPUNIT_ASSERT(pGraphicObject->SwapIn()); // This failed, swap out + swap in lost the PDF data. CPPUNIT_ASSERT(pGraphicObject->GetGraphic().getPdfData().hasElements()); |