diff options
Diffstat (limited to 'svl/qa/unit/items/test_itempool.cxx')
-rw-r--r-- | svl/qa/unit/items/test_itempool.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/svl/qa/unit/items/test_itempool.cxx b/svl/qa/unit/items/test_itempool.cxx index f42ee3fec23e..0c817ec804be 100644 --- a/svl/qa/unit/items/test_itempool.cxx +++ b/svl/qa/unit/items/test_itempool.cxx @@ -43,7 +43,7 @@ void PoolItemTest::testPool() SfxItemPool *pPool = new SfxItemPool("testpool", 0, 3, aItems); SfxItemPool_Impl *pImpl = SfxItemPool_Impl::GetImpl(pPool); - CPPUNIT_ASSERT(pImpl != NULL); + CPPUNIT_ASSERT(pImpl != nullptr); CPPUNIT_ASSERT(pImpl->maPoolItems.size() == 4); // Poolable @@ -51,10 +51,10 @@ void PoolItemTest::testPool() SfxVoidItem aNotherZero( 0 ); { - CPPUNIT_ASSERT(pImpl->maPoolItems[0] == NULL); + CPPUNIT_ASSERT(pImpl->maPoolItems[0] == nullptr); const SfxPoolItem &rVal = pPool->Put(aItemZero); CPPUNIT_ASSERT(rVal == aItemZero); - CPPUNIT_ASSERT(pImpl->maPoolItems[0] != NULL); + CPPUNIT_ASSERT(pImpl->maPoolItems[0] != nullptr); const SfxPoolItem &rVal2 = pPool->Put(aNotherZero); CPPUNIT_ASSERT(rVal2 == rVal); CPPUNIT_ASSERT(&rVal2 == &rVal); @@ -70,10 +70,10 @@ void PoolItemTest::testPool() SfxVoidItem aItemOne( 1 ); SfxVoidItem aNotherOne( 1 ); { - CPPUNIT_ASSERT(pImpl->maPoolItems[1] == NULL); + CPPUNIT_ASSERT(pImpl->maPoolItems[1] == nullptr); const SfxPoolItem &rVal = pPool->Put(aItemOne); CPPUNIT_ASSERT(rVal == aItemOne); - CPPUNIT_ASSERT(pImpl->maPoolItems[1] != NULL); + CPPUNIT_ASSERT(pImpl->maPoolItems[1] != nullptr); const SfxPoolItem &rVal2 = pPool->Put(aNotherOne); CPPUNIT_ASSERT(rVal2 == rVal); @@ -84,10 +84,10 @@ void PoolItemTest::testPool() SfxVoidItem aItemTwo( 2 ); SfxVoidItem aNotherTwo( 2 ); { - CPPUNIT_ASSERT(pImpl->maPoolItems[2] == NULL); + CPPUNIT_ASSERT(pImpl->maPoolItems[2] == nullptr); const SfxPoolItem &rVal = pPool->Put(aItemTwo); // those guys just don't go in ... - CPPUNIT_ASSERT(pImpl->maPoolItems[2] == NULL); + CPPUNIT_ASSERT(pImpl->maPoolItems[2] == nullptr); CPPUNIT_ASSERT(rVal == aItemOne); } |