[gtk+] inspector: GSK_IS_RENDER_NODE() does NULL-check
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] inspector: GSK_IS_RENDER_NODE() does NULL-check
- Date: Sat, 30 Sep 2017 18:23:49 +0000 (UTC)
commit e9dedc503651c53e611fbc10ff14ef79bff1c8e0
Author: Benjamin Otte <otte redhat com>
Date: Sat Sep 30 20:23:11 2017 +0200
inspector: GSK_IS_RENDER_NODE() does NULL-check
That means we don't need an extra one just so gcc can complain.
gtk/inspector/gtktreemodelrendernode.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/inspector/gtktreemodelrendernode.c b/gtk/inspector/gtktreemodelrendernode.c
index 285cd01..bfb5a9c 100644
--- a/gtk/inspector/gtktreemodelrendernode.c
+++ b/gtk/inspector/gtktreemodelrendernode.c
@@ -607,7 +607,7 @@ gtk_tree_model_render_node_set_root_node (GtkTreeModelRenderNode *model,
GtkTreePath *path;
g_return_if_fail (GTK_IS_TREE_MODEL_RENDER_NODE (model));
- g_return_if_fail (node == NULL || GSK_IS_RENDER_NODE (node));
+ g_return_if_fail (GSK_IS_RENDER_NODE (node));
priv = model->priv;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]