aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/SVGDeviceTest.cpp
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2015-08-27 07:41:13 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-27 07:41:16 -0700
commit96fcdcc219d2a0d3579719b84b28bede76efba64 (patch)
tree0ec5ea0193d8292df8bf5ed9dd8498a5eb5763dd /tests/SVGDeviceTest.cpp
parent435af2f736c85c3274a0c6760a3523810750d237 (diff)
Style Change: NULL->nullptr
Diffstat (limited to 'tests/SVGDeviceTest.cpp')
-rw-r--r--tests/SVGDeviceTest.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/SVGDeviceTest.cpp b/tests/SVGDeviceTest.cpp
index c973f8b15f..494efbb3e7 100644
--- a/tests/SVGDeviceTest.cpp
+++ b/tests/SVGDeviceTest.cpp
@@ -24,21 +24,21 @@ void check_text_node(skiatest::Reporter* reporter,
const SkPoint& offset,
unsigned scalarsPerPos,
const char* expected) {
- if (root == NULL) {
+ if (root == nullptr) {
ERRORF(reporter, "root element not found.");
return;
}
const SkDOM::Node* textElem = dom.getFirstChild(root, "text");
- if (textElem == NULL) {
+ if (textElem == nullptr) {
ERRORF(reporter, "<text> element not found.");
return;
}
REPORTER_ASSERT(reporter, dom.getType(textElem) == SkDOM::kElement_Type);
const SkDOM::Node* textNode= dom.getFirstChild(textElem);
- REPORTER_ASSERT(reporter, textNode != NULL);
- if (textNode != NULL) {
+ REPORTER_ASSERT(reporter, textNode != nullptr);
+ if (textNode != nullptr) {
REPORTER_ASSERT(reporter, dom.getType(textNode) == SkDOM::kText_Type);
REPORTER_ASSERT(reporter, strcmp(expected, dom.getName(textNode)) == 0);
}
@@ -46,8 +46,8 @@ void check_text_node(skiatest::Reporter* reporter,
int textLen = SkToInt(strlen(expected));
const char* x = dom.findAttr(textElem, "x");
- REPORTER_ASSERT(reporter, x != NULL);
- if (x != NULL) {
+ REPORTER_ASSERT(reporter, x != nullptr);
+ if (x != nullptr) {
int xposCount = (scalarsPerPos < 1) ? 1 : textLen;
REPORTER_ASSERT(reporter, SkParse::Count(x) == xposCount);
@@ -63,8 +63,8 @@ void check_text_node(skiatest::Reporter* reporter,
}
const char* y = dom.findAttr(textElem, "y");
- REPORTER_ASSERT(reporter, y != NULL);
- if (y != NULL) {
+ REPORTER_ASSERT(reporter, y != nullptr);
+ if (y != nullptr) {
int yposCount = (scalarsPerPos < 2) ? 1 : textLen;
REPORTER_ASSERT(reporter, SkParse::Count(y) == yposCount);