projects
/
gtk+3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7adc38a
)
grid: Remove unnecessary NULL checks
author
Timm Bäder
<mail@baedert.org>
Fri, 28 Apr 2017 09:25:21 +0000
(11:25 +0200)
committer
Daniel Boles
<dboles.src@gmail.com>
Mon, 22 May 2017 13:23:14 +0000
(14:23 +0100)
The minimum and natural pointers passed to measure are never NULL and
that's the only place where we call gtk_grid_get_size_for_size.
gtk/gtkgrid.c
patch
|
blob
|
history
diff --git
a/gtk/gtkgrid.c
b/gtk/gtkgrid.c
index 04896fa915e3e3272bccd4e5fe4249c6411d76a0..b2975554a434d986ff3b2db8d1697c186e4810d6 100644
(file)
--- a/
gtk/gtkgrid.c
+++ b/
gtk/gtkgrid.c
@@
-1455,11
+1455,8
@@
gtk_grid_get_size_for_size (GtkGrid *grid,
GtkGridLines *lines;
gint min_size, nat_size;
- if (minimum)
- *minimum = 0;
-
- if (natural)
- *natural = 0;
+ *minimum = 0;
+ *natural = 0;
if (minimum_baseline)
*minimum_baseline = -1;