aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/skdiff_image.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/skdiff_image.cpp')
-rw-r--r--tools/skdiff_image.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/skdiff_image.cpp b/tools/skdiff_image.cpp
index 89f73810e7..9166988719 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);