From 9b8ff8d6c365bbba2f1274e9f5f0fd30d77a7b7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 21 Apr 2018 19:01:06 +0200 Subject: [PATCH] sizerequestcache: Directly initialize some locals Declaring them and initializing them in the same block of code without an empty line in between is really just confusing. --- gtk/gtksizerequestcache.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gtk/gtksizerequestcache.c b/gtk/gtksizerequestcache.c index 4e85f7d6da..52d8421cc9 100644 --- a/gtk/gtksizerequestcache.c +++ b/gtk/gtksizerequestcache.c @@ -115,9 +115,8 @@ _gtk_size_request_cache_commit (SizeRequestCache *cache, if (orientation == GTK_ORIENTATION_HORIZONTAL) { - SizeRequestX **cached_sizes; + SizeRequestX **cached_sizes = cache->requests_x; SizeRequestX *cached_size; - cached_sizes = cache->requests_x; for (i = 0; i < n_sizes; i++) { @@ -158,9 +157,8 @@ _gtk_size_request_cache_commit (SizeRequestCache *cache, } else { - SizeRequestY **cached_sizes; + SizeRequestY **cached_sizes = cache->requests_y; SizeRequestY *cached_size; - cached_sizes = cache->requests_y; for (i = 0; i < n_sizes; i++) {