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

Unified Diff: tools/flags/SkCommandLineFlags.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 | « tools/flags/SkCommandLineFlags.h ('k') | tools/flags/SkCommonFlags.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/flags/SkCommandLineFlags.cpp
diff --git a/tools/flags/SkCommandLineFlags.cpp b/tools/flags/SkCommandLineFlags.cpp
index 2ea45c2e716b258450705b31889acbdc683d918d..fe3dfd193d08bf171ab0ecbabed141292c519ede 100644
--- a/tools/flags/SkCommandLineFlags.cpp
+++ b/tools/flags/SkCommandLineFlags.cpp
@@ -29,7 +29,7 @@ bool SkFlagInfo::CreateStringFlag(const char* name, const char* shortName,
void SkFlagInfo::SetDefaultStrings(SkCommandLineFlags::StringArray* pStrings,
const char* defaultValue) {
pStrings->reset();
- if (NULL == defaultValue) {
+ if (nullptr == defaultValue) {
return;
}
// If default is "", leave the array empty.
@@ -268,7 +268,7 @@ void SkCommandLineFlags::Parse(int argc, char** argv) {
if (!helpPrinted) {
bool flagMatched = false;
SkFlagInfo* flag = gHead;
- while (flag != NULL) {
+ while (flag != nullptr) {
if (flag->match(argv[i])) {
flagMatched = true;
switch (flag->getFlagType()) {
@@ -287,7 +287,7 @@ void SkCommandLineFlags::Parse(int argc, char** argv) {
flag->resetStrings();
// Add all arguments until another flag is reached.
while (i+1 < argc) {
- char* end = NULL;
+ char* end = nullptr;
// Negative numbers aren't flags.
ignore_result(strtod(argv[i+1], &end));
if (end == argv[i+1] && SkStrStartsWith(argv[i+1], '-')) {
@@ -331,8 +331,8 @@ void SkCommandLineFlags::Parse(int argc, char** argv) {
// Since all of the flags have been set, release the memory used by each
// flag. FLAGS_x can still be used after this.
SkFlagInfo* flag = gHead;
- gHead = NULL;
- while (flag != NULL) {
+ gHead = nullptr;
+ while (flag != nullptr) {
SkFlagInfo* next = flag->next();
delete flag;
flag = next;
« no previous file with comments | « tools/flags/SkCommandLineFlags.h ('k') | tools/flags/SkCommonFlags.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698