Index: src/utils/SkNinePatch.cpp |
diff --git a/src/utils/SkNinePatch.cpp b/src/utils/SkNinePatch.cpp |
index 4a5308bb07193d605500d95ff9584d7da2f77d2f..5ee488e44b6a2cce5c0d48211749a1e81aaa6cd1 100644 |
--- a/src/utils/SkNinePatch.cpp |
+++ b/src/utils/SkNinePatch.cpp |
@@ -196,8 +196,8 @@ void SkNinePatch::DrawMesh(SkCanvas* canvas, const SkRect& bounds, |
mesh.fVerts = verts; |
mesh.fTexs = texs; |
- mesh.fColors = NULL; |
- mesh.fIndices = NULL; |
+ mesh.fColors = nullptr; |
+ mesh.fIndices = nullptr; |
// we use <= for YDivs, since the prebuild indices work for 3x2 and 3x1 too |
if (numXDivs == 2 && numYDivs <= 2) { |
@@ -245,7 +245,7 @@ void SkNinePatch::DrawMesh(SkCanvas* canvas, const SkRect& bounds, |
} |
p.setShader(shader)->unref(); |
canvas->drawVertices(SkCanvas::kTriangles_VertexMode, vCount, |
- mesh.fVerts, mesh.fTexs, mesh.fColors, NULL, |
+ mesh.fVerts, mesh.fTexs, mesh.fColors, nullptr, |
mesh.fIndices, indexCount, p); |
} |