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

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_font_rpc_server.cc

Issue 10942004: Cleanup: avoid foo ? true : false, part 2. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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: ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_font_rpc_server.cc
===================================================================
--- ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_font_rpc_server.cc (revision 157289)
+++ ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_font_rpc_server.cc (working copy)
@@ -142,8 +142,7 @@
reinterpret_cast<struct PP_Point*>(position);
struct PP_Rect* pp_clip =
reinterpret_cast<struct PP_Rect*>(clip);
- PP_Bool pp_image_data_is_opaque =
- PP_FromBool(image_data_is_opaque ? true : false);
+ PP_Bool pp_image_data_is_opaque = PP_FromBool(image_data_is_opaque != 0);
PP_Bool pp_success = PPBFontInterface()->DrawTextAt(font,
image_data,
pp_text_run,

Powered by Google App Engine
This is Rietveld 408576698