aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SampleMeasure.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'samplecode/SampleMeasure.cpp')
-rw-r--r--samplecode/SampleMeasure.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/samplecode/SampleMeasure.cpp b/samplecode/SampleMeasure.cpp
index 86f9b52516..20335f203f 100644
--- a/samplecode/SampleMeasure.cpp
+++ b/samplecode/SampleMeasure.cpp
@@ -35,7 +35,7 @@ static const Setting gSettings[] = {
};
static void doMeasure(SkCanvas* canvas, const SkPaint& paint, const char text[]) {
- SkScalar dy = paint.getFontMetrics(NULL);
+ SkScalar dy = paint.getFontMetrics(nullptr);
size_t len = strlen(text);
SkAutoTMalloc<SkScalar> autoWidths(len);