[Libreoffice-commits] core.git: sw/qa

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Tue Dec 3 18:47:25 UTC 2019


 sw/qa/extras/ww8export/ww8export3.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 4eb7a154e850b9777d5631a31b9bf4e9964b2b32
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Dec 3 13:38:56 2019 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Tue Dec 3 19:45:04 2019 +0100

    Silence false -Werror=maybe-uninitialized
    
    ...where success of >>= has already been checked with CPPUNIT_ASSERT
    
    Change-Id: I127d559ab0bf212e4a32db4f297954d3b94032fc
    Reviewed-on: https://gerrit.libreoffice.org/84345
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/sw/qa/extras/ww8export/ww8export3.cxx b/sw/qa/extras/ww8export/ww8export3.cxx
index d4a65e685f4a..cb04cc83bc20 100644
--- a/sw/qa/extras/ww8export/ww8export3.cxx
+++ b/sw/qa/extras/ww8export/ww8export3.cxx
@@ -318,9 +318,9 @@ DECLARE_WW8EXPORT_TEST(testTdf118375export, "tdf118375_240degClockwise.doc")
     CPPUNIT_ASSERT_MESSAGE("Could not get xShape", xShape.is());
     uno::Reference<beans::XPropertySet> xShapeProps(xShape, uno::UNO_QUERY);
     CPPUNIT_ASSERT_MESSAGE("Could not get the shape properties", xShapeProps.is());
-    sal_Int32 nPosX, nPosY;
-    xShapeProps->getPropertyValue("HoriOrientPosition") >>= nPosX;
-    xShapeProps->getPropertyValue("VertOrientPosition") >>= nPosY;
+    sal_Int32 nPosX = {}, nPosY = {};
+    CPPUNIT_ASSERT(xShapeProps->getPropertyValue("HoriOrientPosition") >>= nPosX);
+    CPPUNIT_ASSERT(xShapeProps->getPropertyValue("VertOrientPosition") >>= nPosY);
     // Allow some tolerance because rounding errors through integer arithmetic
     // in rotation.
     CPPUNIT_ASSERT_DOUBLES_EQUAL(5200.0, static_cast<double>(nPosX), 1.0);


More information about the Libreoffice-commits mailing list