diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-05-19 21:40:24 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-05-20 21:19:03 +0200 |
commit | b0a5d36c12ce4ba6f1d280e00062302c9bf1fba0 (patch) | |
tree | bc6486919aa02881fabb37801a119466bbbda6e1 /basegfx | |
parent | ca11699dbb5c721d527d68e4b68b4eac0d1a7a74 (diff) |
coverity#1435682 Unchecked return value
and
coverity#1435683 Unchecked return value
coverity#1435685 Unchecked return value
Change-Id: I089d6bdfc80f18c38402b61177d85505fc4c4b36
Reviewed-on: https://gerrit.libreoffice.org/54589
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 'basegfx')
-rw-r--r-- | basegfx/test/boxclipper.cxx | 2 | ||||
-rw-r--r-- | basegfx/test/clipstate.cxx | 2 | ||||
-rw-r--r-- | basegfx/test/genericclipper.cxx | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/basegfx/test/boxclipper.cxx b/basegfx/test/boxclipper.cxx index 90dbad7d5066..f155c6a73b34 100644 --- a/basegfx/test/boxclipper.cxx +++ b/basegfx/test/boxclipper.cxx @@ -161,7 +161,7 @@ public: #else const char randomSvg[]="m394 783h404v57h-404zm-197-505h571v576h-571zm356-634h75v200h-75zm-40-113h403v588h-403zm93-811h111v494h-111zm-364-619h562v121h-562zm-134-8h292v27h-292zm110 356h621v486h-621zm78-386h228v25h-228zm475-345h201v201h-201zm-2-93h122v126h-122zm-417-243h567v524h-567zm-266-738h863v456h-863zm262-333h315v698h-315zm-328-826h43v393h-43zm830-219h120v664h-120zm-311-636h221v109h-221zm-500 137h628v19h-628zm681-94h211v493h-211zm-366-646h384v355h-384zm-189-199h715v247h-715zm165-459h563v601h-563zm258-479h98v606h-98zm270-517h65v218h-65zm-44-259h96v286h-96zm-599-202h705v468h-705zm216-803h450v494h-450zm-150-22h26v167h-26zm-55-599h50v260h-50zm190-278h490v387h-490zm-290-453h634v392h-634zm257 189h552v300h-552zm-151-690h136v455h-136zm12-597h488v432h-488zm501-459h48v39h-48zm-224-112h429v22h-429zm-281 102h492v621h-492zm519-158h208v17h-208zm-681-563h56v427h-56zm126-451h615v392h-615zm-47-410h598v522h-598zm-32 316h79v110h-79zm-71-129h18v127h-18zm126-993h743v589h-743zm211-430h428v750h-428zm61-554h100v220h-100zm-353-49h658v157h-658zm778-383h115v272h-115zm-249-541h119v712h-119zm203 86h94v40h-94z"; B2DPolyPolygon randomPoly; - utils::importFromSvgD(randomPoly, randomSvg, false, nullptr); + CPPUNIT_ASSERT(utils::importFromSvgD(randomPoly, randomSvg, false, nullptr)); for (auto const& aPolygon : randomPoly) aRandomIntersections.appendElement(aPolygon.getB2DRange(), B2VectorOrientation::Negative); #endif diff --git a/basegfx/test/clipstate.cxx b/basegfx/test/clipstate.cxx index 5a8409bf39d5..4c64891c16aa 100644 --- a/basegfx/test/clipstate.cxx +++ b/basegfx/test/clipstate.cxx @@ -135,7 +135,7 @@ public: const char unionSvg[]="m100 10v90h-90v10h-20v-10h-90v-90h-10v-20h10v-90h90v-10h20v10h90v90h10v20z"; B2DPolyPolygon aTmp1; - utils::importFromSvgD(aTmp1, unionSvg, false, nullptr); + CPPUNIT_ASSERT(utils::importFromSvgD(aTmp1, unionSvg, false, nullptr)); aMixedClip.intersectPolyPolygon(aTmp1); aMixedClip.subtractRange(B2DRange(-20,-150,20,0)); diff --git a/basegfx/test/genericclipper.cxx b/basegfx/test/genericclipper.cxx index dcd912f5dd5c..551eaac1f8a0 100644 --- a/basegfx/test/genericclipper.cxx +++ b/basegfx/test/genericclipper.cxx @@ -133,8 +133,8 @@ public: OUString aValid=OUString::createFromAscii(pValidSvgD); B2DPolyPolygon aInputPoly, aValidPoly; - utils::importFromSvgD(aInputPoly, aInput, false, nullptr); - utils::importFromSvgD(aValidPoly, aValid, false, nullptr); + CPPUNIT_ASSERT(utils::importFromSvgD(aInputPoly, aInput, false, nullptr)); + CPPUNIT_ASSERT(utils::importFromSvgD(aValidPoly, aValid, false, nullptr)); CPPUNIT_ASSERT_EQUAL_MESSAGE( pName, |