summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-06-17 22:57:41 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-06-18 09:04:26 +0200
commit1d609713d090723aa78b71c35575102ad06717ff (patch)
treeeac8fa87ff46faa0e164ace516cbe774f3f70bf8
parent37ec4442d70339dc8ec5fb8e4ec8984420b6e14d (diff)
-Werror=maybe-uninitialized
Change-Id: Ife1958a39a7cf673b745a7724ee963e868b21432 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136064 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--svx/qa/unit/classicshapes.cxx16
1 files changed, 8 insertions, 8 deletions
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()