summaryrefslogtreecommitdiff
path: root/svl/qa/unit/items/test_itempool.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svl/qa/unit/items/test_itempool.cxx')
-rw-r--r--svl/qa/unit/items/test_itempool.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/svl/qa/unit/items/test_itempool.cxx b/svl/qa/unit/items/test_itempool.cxx
index 38cbda3214da..0987a6bc548a 100644
--- a/svl/qa/unit/items/test_itempool.cxx
+++ b/svl/qa/unit/items/test_itempool.cxx
@@ -135,7 +135,9 @@ void PoolItemTest::testItemSet()
CPPUNIT_ASSERT_EQUAL((sal_uInt16)1, aIter.GetFirstWhich());
CPPUNIT_ASSERT_EQUAL((sal_uInt16)7, aIter.GetLastWhich());
- CPPUNIT_ASSERT_EQUAL((sal_uInt16)1, aIter.FirstItem()->Which());
+ const SfxPoolItem *pFirstItem = aIter.FirstItem();
+ CPPUNIT_ASSERT(pFirstItem);
+ CPPUNIT_ASSERT_EQUAL((sal_uInt16)1, pFirstItem->Which());
CPPUNIT_ASSERT_EQUAL((sal_uInt16)2, aIter.NextItem()->Which());
CPPUNIT_ASSERT_EQUAL((sal_uInt16)3, aIter.NextItem()->Which());
CPPUNIT_ASSERT_EQUAL((sal_uInt16)5, aIter.NextItem()->Which());