From bf3f8403029fcea9ce7d53078697efb24c09a75b Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 10 Nov 2015 10:13:11 +0100 Subject: loplugin:nullptr (automatic rewrite) Change-Id: I62a63915dfc0bced2cd8ffe3999cbde5c4d97b0b --- cppuhelper/qa/ifcontainer/cppu_ifcontainer.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cppuhelper/qa') diff --git a/cppuhelper/qa/ifcontainer/cppu_ifcontainer.cxx b/cppuhelper/qa/ifcontainer/cppu_ifcontainer.cxx index 847b3b877968..3190b7795db2 100644 --- a/cppuhelper/qa/ifcontainer/cppu_ifcontainer.cxx +++ b/cppuhelper/qa/ifcontainer/cppu_ifcontainer.cxx @@ -156,7 +156,7 @@ namespace cppu_ifcontainer pHelper = pContainer->getContainer(pTypes[i]); - CPPUNIT_ASSERT_MESSAGE("no helper", pHelper != NULL); + CPPUNIT_ASSERT_MESSAGE("no helper", pHelper != nullptr); Sequence > aSeq = pHelper->getElements(); CPPUNIT_ASSERT_MESSAGE("wrong num elements", aSeq.getLength() == 2); CPPUNIT_ASSERT_MESSAGE("match", aSeq[0] == xRefs[i*2]); @@ -174,7 +174,7 @@ namespace cppu_ifcontainer pHelper = pContainer->getContainer(pTypes[i]); - CPPUNIT_ASSERT_MESSAGE("no helper", pHelper != NULL); + CPPUNIT_ASSERT_MESSAGE("no helper", pHelper != nullptr); Sequence > aSeq = pHelper->getElements(); CPPUNIT_ASSERT_MESSAGE("wrong num elements", aSeq.getLength() == 1); CPPUNIT_ASSERT_MESSAGE("match", aSeq[0] == xRefs[i*2]); @@ -190,7 +190,7 @@ namespace cppu_ifcontainer cppu::OInterfaceContainerHelper *pHelper; pHelper = pContainer->getContainer(pTypes[i]); - CPPUNIT_ASSERT_MESSAGE("no helper", pHelper != NULL); + CPPUNIT_ASSERT_MESSAGE("no helper", pHelper != nullptr); Sequence > aSeq = pHelper->getElements(); CPPUNIT_ASSERT_MESSAGE("wrong num elements", aSeq.getLength() == 0); } -- cgit