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

Unified Diff: content/common/gpu/client/gpu_memory_buffer_factory_host.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/client/gpu_memory_buffer_factory_host.cc
diff --git a/content/common/gpu/client/gpu_memory_buffer_factory_host.cc b/content/common/gpu/client/gpu_memory_buffer_factory_host.cc
index ea7a321d1c5fcf9eb1b4ecc30e630ce83416eb16..ff393b91c0c60a01794cfccc58556bf07a04b29a 100644
--- a/content/common/gpu/client/gpu_memory_buffer_factory_host.cc
+++ b/content/common/gpu/client/gpu_memory_buffer_factory_host.cc
@@ -8,7 +8,7 @@
namespace content {
namespace {
-GpuMemoryBufferFactoryHost* instance = NULL;
+GpuMemoryBufferFactoryHost* instance = nullptr;
}
// static
@@ -17,11 +17,11 @@ GpuMemoryBufferFactoryHost* GpuMemoryBufferFactoryHost::GetInstance() {
}
GpuMemoryBufferFactoryHost::GpuMemoryBufferFactoryHost() {
- DCHECK(instance == NULL);
+ DCHECK(instance == nullptr);
instance = this;
}
GpuMemoryBufferFactoryHost::~GpuMemoryBufferFactoryHost() {
- instance = NULL;
+ instance = nullptr;
}
}

Powered by Google App Engine
This is Rietveld 408576698