changeset 33087:ca17f301336d

Simplify parameter analysis. Set variable directly and without if condition.
author ib
date Fri, 01 Apr 2011 11:04:48 +0000
parents 1b9f989855f3
children babdacb1ceac
files gui/skin/skin.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/gui/skin/skin.c	Fri Apr 01 10:58:04 2011 +0000
+++ b/gui/skin/skin.c	Fri Apr 01 11:04:48 2011 +0000
@@ -825,10 +825,7 @@
         return 1;
     }
 
-    if (strcmp(in, "enable") != 0)
-        skin->mainDecoration = 0;
-    else
-        skin->mainDecoration = 1;
+    skin->mainDecoration = (strcmp(in, "enable") == 0);
 
     mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[skin]    decoration: %s\n", in);