svx/qa/unit/classicshapes.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit caaff91025316a464aa979b743a4748ab2d207ac
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Thu Jan 6 19:00:26 2022 +0100
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Thu Jan 6 23:02:39 2022 +0100

    -Werror=maybe-uninitialized
    
    Change-Id: Icebc6b95596e62628d00cc3c851f56a6a78ee727
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128058
    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 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)

Reply via email to