From 28f4bee7bd7378141d8569186162e1a3166eb012 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 10 Nov 2015 10:25:17 +0100 Subject: loplugin:nullptr (automatic rewrite) Change-Id: I7fc4b4d5c895f241cfb052b009e943e073f3befe --- svtools/qa/unit/GraphicObjectTest.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'svtools/qa/unit') diff --git a/svtools/qa/unit/GraphicObjectTest.cxx b/svtools/qa/unit/GraphicObjectTest.cxx index dd4cbf6d2e61..cbefed1f1f66 100644 --- a/svtools/qa/unit/GraphicObjectTest.cxx +++ b/svtools/qa/unit/GraphicObjectTest.cxx @@ -164,8 +164,8 @@ void GraphicObjectTest::testSizeBasedAutoSwap() SwNodes& aNodes = pDoc->GetNodes(); // Find images - const GraphicObject* pGrafObj1 = 0; - const GraphicObject* pGrafObj2 = 0; + const GraphicObject* pGrafObj1 = nullptr; + const GraphicObject* pGrafObj2 = nullptr; for( sal_uLong nIndex = 0; nIndex < aNodes.Count(); ++nIndex) { if( aNodes[nIndex]->IsGrfNode() ) @@ -182,7 +182,7 @@ void GraphicObjectTest::testSizeBasedAutoSwap() } } } - CPPUNIT_ASSERT_MESSAGE("Missing image", pGrafObj1 != 0 && pGrafObj2 != 0); + CPPUNIT_ASSERT_MESSAGE("Missing image", pGrafObj1 != nullptr && pGrafObj2 != nullptr); { // First image should be swapped out @@ -254,8 +254,8 @@ void GraphicObjectTest::testTdf88935() SwNodes& aNodes = pDoc->GetNodes(); // Find images - const GraphicObject* pGraphObj1 = 0; - const GraphicObject* pGraphObj2 = 0; + const GraphicObject* pGraphObj1 = nullptr; + const GraphicObject* pGraphObj2 = nullptr; for( sal_uLong nIndex = 0; nIndex < aNodes.Count(); ++nIndex) { if( aNodes[nIndex]->IsGrfNode() ) @@ -272,7 +272,7 @@ void GraphicObjectTest::testTdf88935() } } } - CPPUNIT_ASSERT_MESSAGE("Missing image", pGraphObj1 != 0 && pGraphObj2 != 0); + CPPUNIT_ASSERT_MESSAGE("Missing image", pGraphObj1 != nullptr && pGraphObj2 != nullptr); // Set cache size { -- cgit