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

Unified Diff: Source/core/html/canvas/WebGLSharedObject.cpp

Issue 656723005: Use C++11 features in core/html (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: use nullptr Created 6 years, 1 month 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: Source/core/html/canvas/WebGLSharedObject.cpp
diff --git a/Source/core/html/canvas/WebGLSharedObject.cpp b/Source/core/html/canvas/WebGLSharedObject.cpp
index 8bc19749efb87dee34e6852c6db5a6567e826007..100f28d361918db1d095069200be1c417fd690de 100644
--- a/Source/core/html/canvas/WebGLSharedObject.cpp
+++ b/Source/core/html/canvas/WebGLSharedObject.cpp
@@ -48,7 +48,7 @@ void WebGLSharedObject::detachContextGroup()
{
detach();
if (m_contextGroup) {
- deleteObject(0);
+ deleteObject(nullptr);
m_contextGroup->removeObject(this);
m_contextGroup = nullptr;
}
@@ -56,7 +56,7 @@ void WebGLSharedObject::detachContextGroup()
blink::WebGraphicsContext3D* WebGLSharedObject::getAWebGraphicsContext3D() const
{
- return m_contextGroup ? m_contextGroup->getAWebGraphicsContext3D() : 0;
+ return m_contextGroup ? m_contextGroup->getAWebGraphicsContext3D() : nullptr;
}
}

Powered by Google App Engine
This is Rietveld 408576698