summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-01-06 19:00:26 +0100
committerStephan Bergmann <sbergman@redhat.com>2022-01-06 23:02:39 +0100
commitcaaff91025316a464aa979b743a4748ab2d207ac (patch)
tree4c9bb0cc494df3b309ebd98e749bd7aa597f9e5f /svx
parentf0ad6ec2a23a36ade407db8cda36655ba2f144c1 (diff)
-Werror=maybe-uninitialized
Change-Id: Icebc6b95596e62628d00cc3c851f56a6a78ee727 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128058 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/qa/unit/classicshapes.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/qa/unit/classicshapes.cxx b/svx/qa/unit/classicshapes.cxx
index d9e0fc18c7c1..3bba20f8ec73 100644
--- a/svx/qa/unit/classicshapes.cxx
+++ b/svx/qa/unit/classicshapes.cxx
@@ -198,15 +198,15 @@ CPPUNIT_TEST_FIXTURE(ClassicshapesTest, testTdf130076Flip)
for (sal_uInt8 nPageIndex = 0; nPageIndex < 2; ++nPageIndex)
{
- sal_Int32 angle1, angle2;
+ sal_Int32 angle1 = {}, angle2 = {};
const sal_Int32 goodAngle1 = 26000;
const sal_Int32 goodAngle2 = 26000;
uno::Reference<drawing::XShape> xShape(getShape(1, nPageIndex));
uno::Reference<beans::XPropertySet> xShapeProps(xShape, uno::UNO_QUERY);
uno::Reference<drawing::XShape> xShape2(getShape(2, nPageIndex));
uno::Reference<beans::XPropertySet> xShapeProps2(xShape2, uno::UNO_QUERY);
- xShapeProps->getPropertyValue("CircleStartAngle") >>= angle1;
- xShapeProps2->getPropertyValue("CircleStartAngle") >>= angle2;
+ CPPUNIT_ASSERT(xShapeProps->getPropertyValue("CircleStartAngle") >>= angle1);
+ CPPUNIT_ASSERT(xShapeProps2->getPropertyValue("CircleStartAngle") >>= angle2);
if (angle1 != goodAngle1)
{
sErrors += "page " + OUString::number(nPageIndex)