diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2023-01-02 13:18:33 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-01-03 07:13:11 +0000 |
commit | 1ce6ae04f7faa84d98b10b67f2ef5f24ac1b0129 (patch) | |
tree | c30f220fb939dc9b7267ecbe65961efb6902abb5 /oox/qa | |
parent | d118be7ed4dd6596a8b4d766e8507b6dcaf2b7f7 (diff) |
-Werror=maybe-uninitialized
(Adding just CPPUNIT_ASSERT wasn't enough to silence the warnings at least for
my GCC 13 trunk build, so also added the redundant initializations.)
Change-Id: I8ec9e097d4725d22dd90e9278a37768a749e292d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144943
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'oox/qa')
-rw-r--r-- | oox/qa/unit/shape.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/oox/qa/unit/shape.cxx b/oox/qa/unit/shape.cxx index 19b9f739ad60..094687ffe1df 100644 --- a/oox/qa/unit/shape.cxx +++ b/oox/qa/unit/shape.cxx @@ -336,8 +336,8 @@ CPPUNIT_TEST_FIXTURE(OoxShapeTest, testWriterFontwork) uno::Reference<beans::XPropertySet> xShapeProps(xDrawPage->getByIndex(0), uno::UNO_QUERY); // Is it a Fontwork? - bool bTextBox; - xShapeProps->getPropertyValue(u"TextBox") >>= bTextBox; + bool bTextBox = bool(); + CPPUNIT_ASSERT(xShapeProps->getPropertyValue(u"TextBox") >>= bTextBox); CPPUNIT_ASSERT(!bTextBox); uno::Reference<css::text::XTextFrame> xTextFrame; @@ -354,8 +354,8 @@ CPPUNIT_TEST_FIXTURE(OoxShapeTest, testWriterFontwork) CPPUNIT_ASSERT(aTextPathSeq.getLength() > 0); comphelper::SequenceAsHashMap aTextPathPropMap(aTextPathSeq); - bool bTextPathOn; - aTextPathPropMap.getValue(u"TextPath") >>= bTextPathOn; + bool bTextPathOn = bool(); + CPPUNIT_ASSERT(aTextPathPropMap.getValue(u"TextPath") >>= bTextPathOn); CPPUNIT_ASSERT(bTextPathOn); // Is it the correct kind of Fontwork? |