diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-12-03 13:17:43 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-12-03 19:42:51 +0100 |
commit | 815fad1e55ebd3f1e98a2e062af2d59caed2ac3e (patch) | |
tree | f755c5f9bfa12705253eefc4db69fad699cbb1be /test/source/drawing | |
parent | 0cf64cf29c43ae60c91dab53b99045986cd79038 (diff) |
Silence false -Werror=maybe-uninitialized
...where success of >>= has already been checked with CPPUNIT_ASSERT
Change-Id: I9aa553749988b6b2e26d9a5ac5b376cc5997aba7
Reviewed-on: https://gerrit.libreoffice.org/84335
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'test/source/drawing')
-rw-r--r-- | test/source/drawing/captionshape.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/source/drawing/captionshape.cxx b/test/source/drawing/captionshape.cxx index 70d0b8007a37..807b2ee08379 100644 --- a/test/source/drawing/captionshape.cxx +++ b/test/source/drawing/captionshape.cxx @@ -78,7 +78,7 @@ void CaptionShape::testCaptionShapeProperties() captionIsFixedAngleSet, !captionIsFixedAngleGet); propName = "CaptionAngle"; - sal_Int32 captionAngleGet; + sal_Int32 captionAngleGet = {}; CPPUNIT_ASSERT_MESSAGE("Unable to get the PropertyValue of CaptionAngle", xCaptionShape->getPropertyValue(propName) >>= captionAngleGet); @@ -90,7 +90,7 @@ void CaptionShape::testCaptionShapeProperties() captionAngleGet + 5); propName = "CaptionGap"; - sal_Int32 captionGapGet; + sal_Int32 captionGapGet = {}; CPPUNIT_ASSERT_MESSAGE("Unable to get the PropertyValue of CaptionGap", xCaptionShape->getPropertyValue(propName) >>= captionGapGet); @@ -102,7 +102,7 @@ void CaptionShape::testCaptionShapeProperties() captionGapGet + 5); propName = "CaptionEscapeDirection"; - sal_Int32 captionEscapeDirectionGet; + sal_Int32 captionEscapeDirectionGet = {}; CPPUNIT_ASSERT_MESSAGE("Unable to get the PropertyValue of CaptionEscapeDirection", xCaptionShape->getPropertyValue(propName) >>= captionEscapeDirectionGet); @@ -127,7 +127,7 @@ void CaptionShape::testCaptionShapeProperties() captionIsEscapeRelativeSet, !captionIsEscapeRelativeGet); propName = "CaptionEscapeRelative"; - sal_Int32 captionEscapeRelativeGet; + sal_Int32 captionEscapeRelativeGet = {}; CPPUNIT_ASSERT_MESSAGE("Unable to get the PropertyValue of CaptionEscapeRelative", xCaptionShape->getPropertyValue(propName) >>= captionEscapeRelativeGet); @@ -139,7 +139,7 @@ void CaptionShape::testCaptionShapeProperties() captionEscapeRelativeSet, captionEscapeRelativeGet + 5); propName = "CaptionEscapeAbsolute"; - sal_Int32 captionEscapeAbsoluteGet; + sal_Int32 captionEscapeAbsoluteGet = {}; CPPUNIT_ASSERT_MESSAGE("Unable to get the PropertyValue of CaptionEscapeAbsolute", xCaptionShape->getPropertyValue(propName) >>= captionEscapeAbsoluteGet); @@ -151,7 +151,7 @@ void CaptionShape::testCaptionShapeProperties() captionEscapeAbsoluteSet, captionEscapeAbsoluteGet + 5); propName = "CaptionLineLength"; - sal_Int32 captionLineLengthGet; + sal_Int32 captionLineLengthGet = {}; CPPUNIT_ASSERT_MESSAGE("Unable to get the PropertyValue of CaptionLineLength", xCaptionShape->getPropertyValue(propName) >>= captionLineLengthGet); |