[gtk/wip/baedert/nodeeditor: 33/42] nodeparser: Small cleanup



commit 7072a30bcacc00a3be0f51fc15b4a43d2c59417d
Author: Timm Bäder <mail baedert org>
Date:   Wed Apr 24 10:49:53 2019 +0200

    nodeparser: Small cleanup

 gsk/gskrendernodeparser.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gsk/gskrendernodeparser.c b/gsk/gskrendernodeparser.c
index b3623fa0a1..e117086d1c 100644
--- a/gsk/gskrendernodeparser.c
+++ b/gsk/gskrendernodeparser.c
@@ -1002,6 +1002,7 @@ parse_node (GtkCssParser *parser,
 #endif
     { "debug", parse_debug_node }
   };
+  GskRenderNode **node_p = out_node;
   const GtkCssToken *token;
   guint i;
 
@@ -1032,8 +1033,8 @@ parse_node (GtkCssParser *parser,
               token = gtk_css_parser_get_token (parser);
               if (!gtk_css_token_is (token, GTK_CSS_TOKEN_EOF))
                 gtk_css_parser_error_syntax (parser, "Expected '}' at end of node definition");
-              g_clear_pointer ((GskRenderNode **) out_node, gsk_render_node_unref);
-              *(GskRenderNode **) out_node = node;
+              g_clear_pointer (node_p, gsk_render_node_unref);
+              *node_p = node;
             }
           gtk_css_parser_end_block (parser);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]