Index: debugger/QT/SkGLWidget.cpp |
diff --git a/debugger/QT/SkGLWidget.cpp b/debugger/QT/SkGLWidget.cpp |
index 92c7b421abe5af1dbfbd183f607b1dfee598c888..55bf963b1a46ace0f0a52e7372c084a28151e59a 100644 |
--- a/debugger/QT/SkGLWidget.cpp |
+++ b/debugger/QT/SkGLWidget.cpp |
@@ -38,8 +38,8 @@ void SkGLWidget::initializeGL() { |
if (fCurContext) { |
fCurContext->abandonContext(); |
} |
- fGpuDevice.reset(NULL); |
- fCanvas.reset(NULL); |
+ fGpuDevice.reset(nullptr); |
+ fCanvas.reset(nullptr); |
fCurContext.reset(GrContext::Create(kOpenGL_GrBackend, (GrBackendContext) fCurIntf.get())); |
} |
@@ -55,8 +55,8 @@ void SkGLWidget::createRenderTarget() { |
glClear(GL_STENCIL_BUFFER_BIT); |
fCurContext->resetContext(); |
- fGpuDevice.reset(NULL); |
- fCanvas.reset(NULL); |
+ fGpuDevice.reset(nullptr); |
+ fCanvas.reset(nullptr); |
GrBackendRenderTargetDesc desc = this->getDesc(this->width(), this->height()); |
desc.fOrigin = kBottomLeft_GrSurfaceOrigin; |