summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2016-05-03 17:49:20 +0200
committerMatthias Clasen <mclasen@redhat.com>2016-05-05 15:04:01 -0400
commit0a3122b541fd774840eb326943b83cd77d2a958a (patch)
treefe38a67a8a0eb0ab1ff727b85e8734d239e91572
parent1bac6684f1136e353272032d6e0962697bfc51fb (diff)
downloadgtk+-0a3122b541fd774840eb326943b83cd77d2a958a.tar.gz
widget: Remove useless NULL check
We are checking for allocation != NULL at the beginning of the function already. This also means that the allocation parameter is not nullable.
-rw-r--r--gtk/gtkwidget.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index deb639798e..4ebe69e899 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -15611,7 +15611,7 @@ _gtk_widget_set_simple_clip (GtkWidget *widget,
/**
* gtk_widget_get_allocated_size:
* @widget: a #GtkWidget
- * @allocation: (out) (allow-none): a pointer to a #GtkAllocation to copy to
+ * @allocation: (out): a pointer to a #GtkAllocation to copy to
* @baseline: (out) (allow-none): a pointer to an integer to copy to
*
* Retrieves the widget’s allocated size.
@@ -15638,8 +15638,8 @@ gtk_widget_get_allocated_size (GtkWidget *widget,
priv = widget->priv;
- if (allocation)
- *allocation = priv->allocated_size;
+ *allocation = priv->allocated_size;
+
if (baseline)
*baseline = priv->allocated_size_baseline;
}