summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorrbuj <[email protected]>2022-01-28 21:07:41 +0100
committerLuke from DC <[email protected]>2022-02-13 21:51:59 +0000
commit936a0bdea9b651ad705552600779502dfec91127 (patch)
tree70186783e29abb2e0c7cc16d8d7ee3637208f2f8 /src/ui
parent4f73014773f194331b441c6879fe7d8744d9d9b8 (diff)
downloadmarco-936a0bdea9b651ad705552600779502dfec91127.tar.bz2
marco-936a0bdea9b651ad705552600779502dfec91127.tar.xz
Remove TRUE, FALSE from if statement
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/theme.c9
1 files changed, 3 insertions, 6 deletions
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;