diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-01-14 15:06:18 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-01-14 15:06:18 +0100 |
commit | 1305e7be74dba26d8612004473711f154835a94f (patch) | |
tree | 063f7138bc9a633a542af5c0e7efc98745d089b4 /sw | |
parent | 57e0ab0c3a82ad4a957ea97c15f8672fad4a1880 (diff) |
-Werror=maybe-uninitialized (GCC 6)
Change-Id: I1a174b4b86c1d6cfbdffc4540a33b67b7b5e60dd
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/mailmerge/mailmerge.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/qa/extras/mailmerge/mailmerge.cxx b/sw/qa/extras/mailmerge/mailmerge.cxx index f3598092871d..c74115950e7b 100644 --- a/sw/qa/extras/mailmerge/mailmerge.cxx +++ b/sw/qa/extras/mailmerge/mailmerge.cxx @@ -280,14 +280,14 @@ DECLARE_SHELL_MAILMERGE_TEST(testMultiPageAnchoredDraws, "multiple-page-anchored for (sal_Int32 i = 0; i < xDraws->getCount(); i++) { - text::TextContentAnchorType nAnchorType; - sal_uInt16 nAnchorPageNo; xPropertySet.set(xDraws->getByIndex(i), uno::UNO_QUERY); - xPropertySet->getPropertyValue( UNO_NAME_ANCHOR_TYPE ) >>= nAnchorType; + text::TextContentAnchorType nAnchorType; + CPPUNIT_ASSERT(xPropertySet->getPropertyValue( UNO_NAME_ANCHOR_TYPE ) >>= nAnchorType); CPPUNIT_ASSERT_EQUAL( text::TextContentAnchorType_AT_PAGE, nAnchorType ); - xPropertySet->getPropertyValue( UNO_NAME_ANCHOR_PAGE_NO ) >>= nAnchorPageNo; + sal_uInt16 nAnchorPageNo = {}; + CPPUNIT_ASSERT(xPropertySet->getPropertyValue( UNO_NAME_ANCHOR_PAGE_NO ) >>= nAnchorPageNo); // are all shapes are on different page numbers? CPPUNIT_ASSERT(pages.insert(nAnchorPageNo).second); } |