Dmitry Timoshkov : include/gdipluspixelformats.h: Avoid explicit TRUE/ FALSE in conditional expressions.

Alexandre Julliard julliard at winehq.org
Mon Aug 13 13:21:17 CDT 2012


Module: wine
Branch: master
Commit: 017f802875ce0a4374eb6bc234a3c3dc0afeb8f4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=017f802875ce0a4374eb6bc234a3c3dc0afeb8f4

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Wed Aug  8 17:20:51 2012 +0900

include/gdipluspixelformats.h: Avoid explicit TRUE/FALSE in conditional expressions.

---

 include/gdipluspixelformats.h |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/gdipluspixelformats.h b/include/gdipluspixelformats.h
index 7e6b327..9922b24 100644
--- a/include/gdipluspixelformats.h
+++ b/include/gdipluspixelformats.h
@@ -51,22 +51,22 @@ typedef INT PixelFormat;
 
 static inline BOOL IsIndexedPixelFormat(PixelFormat format)
 {
-    return (format & PixelFormatIndexed) ? TRUE : FALSE;
+    return (format & PixelFormatIndexed) != 0;
 }
 
 static inline BOOL IsAlphaPixelFormat(PixelFormat format)
 {
-    return (format & PixelFormatAlpha) ? TRUE : FALSE;
+    return (format & PixelFormatAlpha) != 0;
 }
 
 static inline BOOL IsCanonicalPixelFormat(PixelFormat format)
 {
-    return (format & PixelFormatCanonical) ? TRUE : FALSE;
+    return (format & PixelFormatCanonical) != 0;
 }
 
 static inline BOOL IsExtendedPixelFormat(PixelFormat format)
 {
-    return (format & PixelFormatExtended) ? TRUE : FALSE;
+    return (format & PixelFormatExtended) != 0;
 }
 
 static inline UINT GetPixelFormatSize(PixelFormat format)




More information about the wine-cvs mailing list