svx/qa/unit/classicshapes.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
New commits: commit 1d609713d090723aa78b71c35575102ad06717ff Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Fri Jun 17 22:57:41 2022 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Sat Jun 18 09:04:26 2022 +0200 -Werror=maybe-uninitialized Change-Id: Ife1958a39a7cf673b745a7724ee963e868b21432 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136064 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/svx/qa/unit/classicshapes.cxx b/svx/qa/unit/classicshapes.cxx index bb5bea7458c7..39c3dc20ce77 100644 --- a/svx/qa/unit/classicshapes.cxx +++ b/svx/qa/unit/classicshapes.cxx @@ -89,15 +89,15 @@ CPPUNIT_TEST_FIXTURE(ClassicshapesTest, testTdf98584ShearVertical) .toUtf8() .getStr(), 5001.0, aFrameRect.Width, 2.0); - double nShearA; - xShapeProps->getPropertyValue(UNO_NAME_MISC_OBJ_SHEARANGLE) >>= nShearA; + double nShearA = {}; + CPPUNIT_ASSERT(xShapeProps->getPropertyValue(UNO_NAME_MISC_OBJ_SHEARANGLE) >>= nShearA); CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE( OUString("Incorrect Share angle on skewY page " + OUString::number(nPageIndex)) .toUtf8() .getStr(), -5313.0, nShearA, 2.0); - double nRotA; - xShapeProps->getPropertyValue(UNO_NAME_MISC_OBJ_ROTATEANGLE) >>= nRotA; + double nRotA = {}; + CPPUNIT_ASSERT(xShapeProps->getPropertyValue(UNO_NAME_MISC_OBJ_ROTATEANGLE) >>= nRotA); CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE( OUString("Incorrect Rotate angle on skewY page " + OUString::number(nPageIndex)) .toUtf8() @@ -118,15 +118,15 @@ CPPUNIT_TEST_FIXTURE(ClassicshapesTest, testTdf98584ShearVertical) .toUtf8() .getStr(), 5001.0, aFrameRect.Width, 2.0); - double nShearA; - xShapeProps->getPropertyValue(UNO_NAME_MISC_OBJ_SHEARANGLE) >>= nShearA; + double nShearA = {}; + CPPUNIT_ASSERT(xShapeProps->getPropertyValue(UNO_NAME_MISC_OBJ_SHEARANGLE) >>= nShearA); CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE( OUString("Incorrect Share angle on matrix page " + OUString::number(nPageIndex)) .toUtf8() .getStr(), -6343.0, nShearA, 2.0); - double nRotA; - xShapeProps->getPropertyValue(UNO_NAME_MISC_OBJ_ROTATEANGLE) >>= nRotA; + double nRotA = {}; + CPPUNIT_ASSERT(xShapeProps->getPropertyValue(UNO_NAME_MISC_OBJ_ROTATEANGLE) >>= nRotA); CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE( OUString("Incorrect Rotate angle on matrix page " + OUString::number(nPageIndex)) .toUtf8()