From a93a14a99816d25b773f0b12868143702baf44bf Mon Sep 17 00:00:00 2001 From: Ben Wagner Date: Mon, 28 Aug 2017 10:34:05 -0400 Subject: Convert NULL and 0 to nullptr. This was created by looking at warnings produced by clang's -Wzero-as-null-pointer-constant. This updates most issues in Skia code. However, there are places where GL and Vulkan want pointer values which are explicitly 0, external headers which use NULL directly, and possibly more uses in un-compiled sources (for other platforms). Change-Id: Id22fbac04d5c53497a53d734f0896b4f06fe8345 Reviewed-on: https://skia-review.googlesource.com/39521 Reviewed-by: Mike Reed Commit-Queue: Ben Wagner --- tools/gpu/gl/GLTestContext.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/gpu/gl') diff --git a/tools/gpu/gl/GLTestContext.h b/tools/gpu/gl/GLTestContext.h index fb63ac3140..b5dd9acf8a 100644 --- a/tools/gpu/gl/GLTestContext.h +++ b/tools/gpu/gl/GLTestContext.h @@ -30,7 +30,7 @@ public: const GrGLInterface *gl() const { return fGL.get(); } /** Used for testing EGLImage integration. Take a GL_TEXTURE_2D and wraps it in an EGL Image */ - virtual GrEGLImage texture2DToEGLImage(GrGLuint /*texID*/) const { return 0; } + virtual GrEGLImage texture2DToEGLImage(GrGLuint /*texID*/) const { return nullptr; } virtual void destroyEGLImage(GrEGLImage) const { } -- cgit v1.2.3