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

Unified Diff: gpu/demos/framework/pepper.cc

Issue 10939010: Cleanup: avoid foo ? true : false, part 1. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 8 years, 3 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: gpu/demos/framework/pepper.cc
===================================================================
--- gpu/demos/framework/pepper.cc (revision 159076)
+++ gpu/demos/framework/pepper.cc (working copy)
@@ -127,7 +127,7 @@
}
virtual bool Init() {
- return glInitializePPAPI(get_browser_interface()) == GL_TRUE ? true : false;
+ return (glInitializePPAPI(get_browser_interface()) == GL_TRUE);
}
virtual pp::Instance* CreateInstance(PP_Instance instance) {
@@ -145,4 +145,3 @@
}
} // namespace pp
-
« no previous file with comments | « content/shell/shell_web_contents_view_delegate_win.cc ('k') | media/audio/cross_process_notification_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698