diff options
Diffstat (limited to 'tools/skdiff_utils.cpp')
-rw-r--r-- | tools/skdiff_utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/skdiff_utils.cpp b/tools/skdiff_utils.cpp index e656e3c44b..1e2a727945 100644 --- a/tools/skdiff_utils.cpp +++ b/tools/skdiff_utils.cpp @@ -16,7 +16,7 @@ #include <memory> bool are_buffers_equal(SkData* skdata1, SkData* skdata2) { - if ((NULL == skdata1) || (NULL == skdata2)) { + if ((nullptr == skdata1) || (nullptr == skdata2)) { return false; } if (skdata1->size() != skdata2->size()) { @@ -39,7 +39,7 @@ bool get_bitmap(SkData* fileBits, DiffResource& resource, SkImageDecoder::Mode m // In debug, the DLL will automatically be unloaded when this is deleted, // but that shouldn't be a problem in release mode. std::unique_ptr<SkImageDecoder> codec(SkImageDecoder::Factory(&stream)); - if (NULL == codec) { + if (nullptr == codec) { SkDebugf("ERROR: no codec found for <%s>\n", resource.fFullPath.c_str()); resource.fStatus = DiffResource::kCouldNotDecode_Status; return false; |