diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2010-08-21 13:52:25 +0000 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2010-08-21 13:52:25 +0000 |
commit | 5a8a8c90140aa18bde2c1696eb7d2da1c978e15e (patch) | |
tree | b9d11055f743cd53a3895501ed9a6203062bbe60 /legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c | |
parent | 8b3511109441c22a2664665efe00892dc44fcf6c (diff) |
Convert (hopefully) all comparisons to NULL
Apply badzero.cocci, badnull.coci and badnull2.cocci
This should convert all cases where there's a comparison to NULL to simpler
forms. This patch applies the following transformations:
code before patch ||code after patch
===============================================================
return a == NULL; return !a;
return a != NULL; return !!a;
func(a == NULL); func(!a);
func(a != NULL); func(!!a);
b = a == NULL; b = !a;
b = a != NULL; b = !!a;
b = a == NULL ? c : d; b = !a ? c : d;
b = a != NULL ? c : d; b = a ? c : d;
other cases:
a == NULL !a
a != NULL a
SVN revision: 51487
Diffstat (limited to '')
-rw-r--r-- | legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c b/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c index f1cbdca5bd..1c3cbb4dcb 100644 --- a/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c +++ b/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c | |||
@@ -661,7 +661,7 @@ _ecore_evas_wince_fullscreen_set(Ecore_Evas *ee, int on) | |||
661 | } | 661 | } |
662 | 662 | ||
663 | einfo = (Evas_Engine_Info_Software_16_WinCE *)evas_engine_info_get(ecore_evas_get(ee)); | 663 | einfo = (Evas_Engine_Info_Software_16_WinCE *)evas_engine_info_get(ecore_evas_get(ee)); |
664 | if (einfo != NULL) | 664 | if (einfo) |
665 | { | 665 | { |
666 | einfo->info.fullscreen = !!on; | 666 | einfo->info.fullscreen = !!on; |
667 | /* einfo->info.layered = window->shape.layered; */ | 667 | /* einfo->info.layered = window->shape.layered; */ |