summaryrefslogtreecommitdiff
path: root/svtools/qa/unit
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:25:17 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:48 +0100
commit28f4bee7bd7378141d8569186162e1a3166eb012 (patch)
tree97cb855eec76da937068cda5c5f0f7d5bcd61e47 /svtools/qa/unit
parentbf057fab3c0d17bf2832c8d9fc6d34b1b859e660 (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: I7fc4b4d5c895f241cfb052b009e943e073f3befe
Diffstat (limited to 'svtools/qa/unit')
-rw-r--r--svtools/qa/unit/GraphicObjectTest.cxx12
1 files changed, 6 insertions, 6 deletions
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
{