diff options
author | Timm Bäder <mail@baedert.org> | 2019-11-07 07:32:03 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2019-11-14 09:15:58 +0100 |
commit | edf56b438ebade5f33a3c4b28e2aab9f0631effc (patch) | |
tree | c5aafb922cfd66415a370c990fbd646652be5a2e /gtk/gtkcssnumbervalue.c | |
parent | cd3cd64769a320538dca9d7fa9737823e9bb2a3a (diff) | |
download | gtk+-edf56b438ebade5f33a3c4b28e2aab9f0631effc.tar.gz |
css: short-circuit gtk_css_dimension_value_try_add
No need to allocate a new css value for something that we already have,
because one of the two values is 0
Diffstat (limited to 'gtk/gtkcssnumbervalue.c')
-rw-r--r-- | gtk/gtkcssnumbervalue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkcssnumbervalue.c b/gtk/gtkcssnumbervalue.c index e8543bea28..f5e574c81d 100644 --- a/gtk/gtkcssnumbervalue.c +++ b/gtk/gtkcssnumbervalue.c @@ -66,8 +66,8 @@ gtk_css_number_value_add (GtkCssValue *value1, } GtkCssValue * -gtk_css_number_value_try_add (const GtkCssValue *value1, - const GtkCssValue *value2) +gtk_css_number_value_try_add (GtkCssValue *value1, + GtkCssValue *value2) { GtkCssNumberValueClass *number_value_class; |