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

Unified Diff: app/gfx/gl/gl_context_linux.cc

Issue 3014034: Linux: Fix some NULL versus 0 issues to appease gcc-4.5. (Closed)
Patch Set: Created 10 years, 5 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
« no previous file with comments | « no previous file | chrome/gpu/gpu_channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/gfx/gl/gl_context_linux.cc
diff --git a/app/gfx/gl/gl_context_linux.cc b/app/gfx/gl/gl_context_linux.cc
index 8701bc362c5e8212697290f744a8a4d4a55b6375..9e0f4d2b1a3451f26e6565562f7a3bd7629d8098 100644
--- a/app/gfx/gl/gl_context_linux.cc
+++ b/app/gfx/gl/gl_context_linux.cc
@@ -318,7 +318,7 @@ void OSMesaViewGLContext::Destroy() {
if (pixmap_) {
XFreePixmap(display, pixmap_);
- pixmap_ = NULL;
+ pixmap_ = 0;
}
if (window_graphics_context_) {
@@ -406,7 +406,7 @@ bool OSMesaViewGLContext::UpdateSize() {
}
if (pixmap_) {
XFreePixmap(display, pixmap_);
- pixmap_ = NULL;
+ pixmap_ = 0;
}
// Recreate a pixmap to hold the frame.
« no previous file with comments | « no previous file | chrome/gpu/gpu_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698