forked from AuroraMiddleware/gtk
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.
This commit is contained in:
parent
1313234ae0
commit
9b8ff8d6c3
@ -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++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user