summaryrefslogtreecommitdiff
path: root/sw/qa/extras/mailmerge
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-01-14 15:06:18 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-01-14 15:06:18 +0100
commit1305e7be74dba26d8612004473711f154835a94f (patch)
tree063f7138bc9a633a542af5c0e7efc98745d089b4 /sw/qa/extras/mailmerge
parent57e0ab0c3a82ad4a957ea97c15f8672fad4a1880 (diff)
-Werror=maybe-uninitialized (GCC 6)
Change-Id: I1a174b4b86c1d6cfbdffc4540a33b67b7b5e60dd
Diffstat (limited to 'sw/qa/extras/mailmerge')
-rw-r--r--sw/qa/extras/mailmerge/mailmerge.cxx8
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);
}