[gtk/wip/chergert/glproto] cleanup style
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto] cleanup style
- Date: Sat, 2 Jan 2021 19:02:56 +0000 (UTC)
commit 8562820a402f29c4adb0e8f29b3713182dba6d02
Author: Christian Hergert <chergert redhat com>
Date: Sat Jan 2 11:02:42 2021 -0800
cleanup style
gsk/next/gskglrenderjob.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gsk/next/gskglrenderjob.c b/gsk/next/gskglrenderjob.c
index f51dd732aa..eac1caccfb 100644
--- a/gsk/next/gskglrenderjob.c
+++ b/gsk/next/gskglrenderjob.c
@@ -1342,12 +1342,9 @@ gsk_gl_render_job_visit_node (GskGLRenderJob *job,
{
case GSK_CONTAINER_NODE:
{
- guint i;
- guint p;
+ guint n_children = gsk_container_node_get_n_children (node);
- for (i = 0, p = gsk_container_node_get_n_children (node);
- i < p;
- i ++)
+ for (guint i = 0; i < n_children; i++)
{
GskRenderNode *child = gsk_container_node_get_child (node, i);
gsk_gl_render_job_visit_node (job, child);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]