From 936a0bdea9b651ad705552600779502dfec91127 Mon Sep 17 00:00:00 2001 From: rbuj Date: Fri, 28 Jan 2022 21:07:41 +0100 Subject: Remove TRUE, FALSE from if statement --- src/ui/theme.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/ui') diff --git a/src/ui/theme.c b/src/ui/theme.c index c117eeb8..a78f9ce2 100644 --- a/src/ui/theme.c +++ b/src/ui/theme.c @@ -2917,7 +2917,7 @@ meta_parse_position_expression (MetaDrawSpec *spec, val = spec->value; else { - if (pos_eval (spec, env, &spec->value, err) == FALSE) + if (!pos_eval (spec, env, &spec->value, err)) { g_assert (err == NULL || *err != NULL); return FALSE; @@ -2946,7 +2946,7 @@ meta_parse_size_expression (MetaDrawSpec *spec, val = spec->value; else { - if (pos_eval (spec, env, &spec->value, err) == FALSE) + if (!pos_eval (spec, env, &spec->value, err)) { g_assert (err == NULL || *err != NULL); return FALSE; @@ -3095,10 +3095,7 @@ meta_draw_spec_new (MetaTheme *theme, spec->n_tokens, NULL); if (spec->constant) { - gboolean result; - - result = pos_eval (spec, NULL, &spec->value, error); - if (result == FALSE) + if (!pos_eval (spec, NULL, &spec->value, error)) { meta_draw_spec_free (spec); return NULL; -- cgit v1.2.1