summaryrefslogtreecommitdiff
path: root/tools/qa
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:26:25 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:54 +0100
commit1c4f33b5d8ba6a8cebb0235bb2e7e37e33045a5b (patch)
tree80530f50cf36927a1e4f31ad0192077bfb0ecf39 /tools/qa
parent175e2adfd1677cb83373b0ba47853493f3b77859 (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: Ia5acfb564f913d52cd25b5d64d06b5280b94cb72
Diffstat (limited to 'tools/qa')
-rw-r--r--tools/qa/cppunit/test_urlobj.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/tools/qa/cppunit/test_urlobj.cxx b/tools/qa/cppunit/test_urlobj.cxx
index 4c126c1bbb06..f82b37c6a8f8 100644
--- a/tools/qa/cppunit/test_urlobj.cxx
+++ b/tools/qa/cppunit/test_urlobj.cxx
@@ -249,19 +249,19 @@ namespace tools_urlobj
url = INetURLObject("data:");
//TODO: CPPUNIT_ASSERT(url.HasError());
strm = url.getData();
- CPPUNIT_ASSERT(strm == 0);
+ CPPUNIT_ASSERT(strm == nullptr);
url = INetURLObject("data:,");
CPPUNIT_ASSERT(!url.HasError());
strm = url.getData();
- CPPUNIT_ASSERT(strm != 0);
+ CPPUNIT_ASSERT(strm != nullptr);
CPPUNIT_ASSERT_EQUAL(sal_uInt64(0), strm->GetSize());
strm.reset();
url = INetURLObject("data:,,%C3%A4%90");
CPPUNIT_ASSERT(!url.HasError());
strm = url.getData();
- CPPUNIT_ASSERT(strm != 0);
+ CPPUNIT_ASSERT(strm != nullptr);
CPPUNIT_ASSERT_EQUAL(sal_uInt64(4), strm->GetSize());
buf = static_cast<unsigned char const *>(strm->GetData());
CPPUNIT_ASSERT_EQUAL(0x2C, int(buf[0]));
@@ -273,26 +273,26 @@ namespace tools_urlobj
url = INetURLObject("data:base64,");
//TODO: CPPUNIT_ASSERT(url.HasError());
strm = url.getData();
- CPPUNIT_ASSERT(strm == 0);
+ CPPUNIT_ASSERT(strm == nullptr);
url = INetURLObject("data:;base64,");
CPPUNIT_ASSERT(!url.HasError());
strm = url.getData();
- CPPUNIT_ASSERT(strm != 0);
+ CPPUNIT_ASSERT(strm != nullptr);
CPPUNIT_ASSERT_EQUAL(sal_uInt64(0), strm->GetSize());
strm.reset();
url = INetURLObject("data:;bAsE64,");
CPPUNIT_ASSERT(!url.HasError());
strm = url.getData();
- CPPUNIT_ASSERT(strm != 0);
+ CPPUNIT_ASSERT(strm != nullptr);
CPPUNIT_ASSERT_EQUAL(sal_uInt64(0), strm->GetSize());
strm.reset();
url = INetURLObject("data:;base64,YWJjCg==");
CPPUNIT_ASSERT(!url.HasError());
strm = url.getData();
- CPPUNIT_ASSERT(strm != 0);
+ CPPUNIT_ASSERT(strm != nullptr);
CPPUNIT_ASSERT_EQUAL(sal_uInt64(4), strm->GetSize());
buf = static_cast<unsigned char const *>(strm->GetData());
CPPUNIT_ASSERT_EQUAL(0x61, int(buf[0]));
@@ -304,17 +304,17 @@ namespace tools_urlobj
url = INetURLObject("data:;base64,YWJjCg=");
CPPUNIT_ASSERT(!url.HasError());
strm = url.getData();
- CPPUNIT_ASSERT(strm == 0);
+ CPPUNIT_ASSERT(strm == nullptr);
url = INetURLObject("data:;base64,YWJ$Cg==");
CPPUNIT_ASSERT(!url.HasError());
strm = url.getData();
- CPPUNIT_ASSERT(strm == 0);
+ CPPUNIT_ASSERT(strm == nullptr);
url = INetURLObject("data:text/plain;param=%22;base64,%22,YQ==");
CPPUNIT_ASSERT(!url.HasError());
strm = url.getData();
- CPPUNIT_ASSERT(strm != 0);
+ CPPUNIT_ASSERT(strm != nullptr);
CPPUNIT_ASSERT_EQUAL(sal_uInt64(4), strm->GetSize());
buf = static_cast<unsigned char const *>(strm->GetData());
CPPUNIT_ASSERT_EQUAL(0x59, int(buf[0]));
@@ -326,7 +326,7 @@ namespace tools_urlobj
url = INetURLObject("http://example.com");
CPPUNIT_ASSERT(!url.HasError());
strm = url.getData();
- CPPUNIT_ASSERT(strm == 0);
+ CPPUNIT_ASSERT(strm == nullptr);
}
void urlobjTest_isSchemeEqualTo() {