Michael Stefaniuc : gdi32: Avoid TRUE:FALSE conditional expressions.

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


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Wed Aug  8 21:10:10 2012 +0200

gdi32: Avoid TRUE:FALSE conditional expressions.

---

 dlls/gdi32/dib.c      |    2 +-
 dlls/gdi32/freetype.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/gdi32/dib.c b/dlls/gdi32/dib.c
index c35de33..78f0b93 100644
--- a/dlls/gdi32/dib.c
+++ b/dlls/gdi32/dib.c
@@ -1390,7 +1390,7 @@ INT WINAPI GetDIBits(
         ret = lines;
     }
     else
-        ret = empty_rect ? FALSE : TRUE;
+        ret = !empty_rect;
 
     if (coloruse == DIB_PAL_COLORS)
     {
diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index 494ea7d..8222a18 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -1754,7 +1754,7 @@ static Face *create_face( FT_Face ft_face, FT_Long face_index, const char *file,
     }
 
     face->vertical = vertical;
-    face->external = (flags & ADDFONT_EXTERNAL_FONT) ? TRUE : FALSE;
+    face->external = (flags & ADDFONT_EXTERNAL_FONT) != 0;
     face->family = NULL;
     face->cached_enum_data = NULL;
 




More information about the wine-cvs mailing list