Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(717)

Unified Diff: content/common/gpu/image_transport_surface.cc

Issue 649533003: C++11 declares a type safe null pointer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Presubmit errors Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/image_transport_surface.cc
diff --git a/content/common/gpu/image_transport_surface.cc b/content/common/gpu/image_transport_surface.cc
index a1062dd91ff4a74adb165fde2ed2738912c56d62..dccd20c01d2c39d5392164613b543f32b55af7aa 100644
--- a/content/common/gpu/image_transport_surface.cc
+++ b/content/common/gpu/image_transport_surface.cc
@@ -45,7 +45,7 @@ scoped_refptr<gfx::GLSurface> ImageTransportSurface::CreateSurface(
}
if (!surface.get() || !surface->Initialize())
- return NULL;
+ return nullptr;
return surface;
}
@@ -169,13 +169,13 @@ void ImageTransportHelper::SetSwapInterval(gfx::GLContext* context) {
gpu::GpuScheduler* ImageTransportHelper::Scheduler() {
if (!stub_.get())
- return NULL;
+ return nullptr;
return stub_->scheduler();
}
gpu::gles2::GLES2Decoder* ImageTransportHelper::Decoder() {
if (!stub_.get())
- return NULL;
+ return nullptr;
return stub_->decoder();
}
« no previous file with comments | « content/common/gpu/gpu_surface_lookup.cc ('k') | content/common/gpu/image_transport_surface_iosurface_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698