diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-12-03 13:38:56 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-12-03 19:45:04 +0100 |
commit | 4eb7a154e850b9777d5631a31b9bf4e9964b2b32 (patch) | |
tree | ccb23b5f5134c71de1237d7572992b97401c8347 /sw/qa/extras | |
parent | e8cb5f2e11838060f85e7940540b5f7096d9eeb7 (diff) |
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@redhat.com>
Diffstat (limited to 'sw/qa/extras')
-rw-r--r-- | sw/qa/extras/ww8export/ww8export3.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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); |