changeset 517:d84f2210a73c

6 for() vs 201 for (): winner is for ().
author zas_
date Thu, 24 Apr 2008 15:53:08 +0000
parents b7e99bfeadc9
children e56c74e89da9
files src/cache.c src/pixbuf-renderer.c src/preferences.c src/slideshow.c src/thumb.c src/view_file_list.c
diffstat 6 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/cache.c	Thu Apr 24 15:49:57 2008 +0000
+++ b/src/cache.c	Thu Apr 24 15:53:08 2008 +0000
@@ -133,7 +133,7 @@
 
 			s = y * 32;
 			p = buf;
-			for(x = 0; x < 32; x++)
+			for (x = 0; x < 32; x++)
 				{
 				*p = cd->sim->avg_r[s + x]; p++;
 				*p = cd->sim->avg_g[s + x]; p++;
--- a/src/pixbuf-renderer.c	Thu Apr 24 15:49:57 2008 +0000
+++ b/src/pixbuf-renderer.c	Thu Apr 24 15:53:08 2008 +0000
@@ -893,7 +893,7 @@
 				gint sx, sy;
 
 				for (sx = rx; sx < rx + rw; sx += pr->tile_width)
-				    for(sy = ry; sy < ry + rh; sy += pr->tile_height)
+				    for (sy = ry; sy < ry + rh; sy += pr->tile_height)
 					{
 					gint sw, sh;
 
--- a/src/preferences.c	Thu Apr 24 15:49:57 2008 +0000
+++ b/src/preferences.c	Thu Apr 24 15:53:08 2008 +0000
@@ -154,7 +154,7 @@
 	gint i;
 	gint refresh = FALSE;
 
-	for(i = 0; i < GQ_EDITOR_SLOTS; i++)
+	for (i = 0; i < GQ_EDITOR_SLOTS; i++)
 		{
 		if (i < GQ_EDITOR_GENERIC_SLOTS)
 			{
--- a/src/slideshow.c	Thu Apr 24 15:49:57 2008 +0000
+++ b/src/slideshow.c	Thu Apr 24 15:53:08 2008 +0000
@@ -56,7 +56,7 @@
 	else
 		{
 		gint i;
-		for(i = 0; i < ss->slide_count; i++)
+		for (i = 0; i < ss->slide_count; i++)
 			{
 			list = g_list_prepend(list, GINT_TO_POINTER(i));
 			}
--- a/src/thumb.c	Thu Apr 24 15:49:57 2008 +0000
+++ b/src/thumb.c	Thu Apr 24 15:53:08 2008 +0000
@@ -631,7 +631,7 @@
 		gint i;
 
 		rgb_data = g_new(guchar, width * height * 3);
-		for(i = 0; i < width * height; i++)
+		for (i = 0; i < width * height; i++)
 			{
 			rgb_data[i * 3 + 0] = (packed_data[i] >> 5) * 36;
 			rgb_data[i * 3 + 1] = ((packed_data[i] & 28) >> 2) * 36;
--- a/src/view_file_list.c	Thu Apr 24 15:49:57 2008 +0000
+++ b/src/view_file_list.c	Thu Apr 24 15:53:08 2008 +0000
@@ -2031,7 +2031,7 @@
 
 	vflist_listview_add_column(vfl, FILE_COLUMN_THUMB, "", TRUE, FALSE, FALSE);
 
-	for(i = 0; i < FILEDATA_MARKS_SIZE;i++)
+	for (i = 0; i < FILEDATA_MARKS_SIZE;i++)
     		vflist_listview_add_column_toggle(vfl, i + FILE_COLUMN_MARKS, "");
 
 	vflist_listview_add_column(vfl, FILE_COLUMN_NAME, _("Name"), FALSE, FALSE, FALSE);