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

Unified Diff: tools/skdiff_image.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/sk_tool_utils_font.cpp ('k') | tools/skdiff_main.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/skdiff_image.cpp
diff --git a/tools/skdiff_image.cpp b/tools/skdiff_image.cpp
index 89f73810e70cfeac55d72ab8a6f606c310f4cefa..9166988719447733a7989e18d3c61b06e1ac387b 100644
--- a/tools/skdiff_image.cpp
+++ b/tools/skdiff_image.cpp
@@ -44,11 +44,11 @@ static void create_diff_images (DiffMetricProc dmp,
if (comparisonFileBits) {
drp->fComparison.fStatus = DiffResource::kRead_Status;
}
- if (NULL == baseFileBits || NULL == comparisonFileBits) {
- if (NULL == baseFileBits) {
+ if (nullptr == baseFileBits || nullptr == comparisonFileBits) {
+ if (nullptr == baseFileBits) {
drp->fBase.fStatus = DiffResource::kCouldNotRead_Status;
}
- if (NULL == comparisonFileBits) {
+ if (nullptr == comparisonFileBits) {
drp->fComparison.fStatus = DiffResource::kCouldNotRead_Status;
}
drp->fResult = DiffRecord::kCouldNotCompare_Result;
@@ -314,7 +314,7 @@ int tool_main(int argc, char** argv) {
} else {
const char* baseLabelCstr = baseLabel.c_str();
const char* tab = strchr(baseLabelCstr, '\t');
- if (NULL == tab) {
+ if (nullptr == tab) {
outputFile = baseLabel;
} else {
outputFile.set(baseLabelCstr, tab - baseLabelCstr);
« no previous file with comments | « tools/sk_tool_utils_font.cpp ('k') | tools/skdiff_main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698