Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1135)

Unified Diff: src/xml/SkXMLWriter.cpp

Issue 1316233002: Style Change: NULL->nullptr (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-27 (Thursday) 10:25:06 EDT Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/xml/SkXMLPullParser.cpp ('k') | tests/AAClipTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/xml/SkXMLWriter.cpp
diff --git a/src/xml/SkXMLWriter.cpp b/src/xml/SkXMLWriter.cpp
index 7a1b04277ef81d4ac14b9c79137445f77af92854..5ee237ff68b40de0fa4c51638d0e6b59b06b3d65 100644
--- a/src/xml/SkXMLWriter.cpp
+++ b/src/xml/SkXMLWriter.cpp
@@ -146,7 +146,7 @@ void SkXMLWriter::addAttributeLen(const char name[], const char value[], size_t
if (fDoEscapeMarkup)
{
- size_t extra = escape_markup(NULL, value, length);
+ size_t extra = escape_markup(nullptr, value, length);
if (extra)
{
valueStr.resize(length + extra);
@@ -181,15 +181,15 @@ static void write_dom(const SkDOM& dom, const SkDOM::Node* node, SkXMLWriter* w,
SkDOM::AttrIter iter(dom, node);
const char* name;
const char* value;
- while ((name = iter.next(&value)) != NULL)
+ while ((name = iter.next(&value)) != nullptr)
w->addAttribute(name, value);
}
- node = dom.getFirstChild(node, NULL);
+ node = dom.getFirstChild(node, nullptr);
while (node)
{
write_dom(dom, node, w, false);
- node = dom.getNextSibling(node, NULL);
+ node = dom.getNextSibling(node, nullptr);
}
if (!skipRoot)
« no previous file with comments | « src/xml/SkXMLPullParser.cpp ('k') | tests/AAClipTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698