aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/Resources.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/Resources.cpp')
-rw-r--r--tools/Resources.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/Resources.cpp b/tools/Resources.cpp
index 75625b40a6..a2a59029bc 100644
--- a/tools/Resources.cpp
+++ b/tools/Resources.cpp
@@ -44,14 +44,14 @@ SkStreamAsset* GetResourceAsStream(const char* resource) {
return stream.detach();
} else {
SkDebugf("Resource %s not found.\n", resource);
- return NULL;
+ return nullptr;
}
}
SkTypeface* GetResourceAsTypeface(const char* resource) {
SkAutoTDelete<SkStreamAsset> stream(GetResourceAsStream(resource));
if (!stream) {
- return NULL;
+ return nullptr;
}
return SkTypeface::CreateFromStream(stream.detach());
}