# HG changeset patch # User zas_ # Date 1209052388 0 # Node ID d84f2210a73c8aaf83a677e6be7a4d91175fae81 # Parent b7e99bfeadc903f6eced2177418bf1f9ec38d56b 6 for() vs 201 for (): winner is for (). diff -r b7e99bfeadc9 -r d84f2210a73c src/cache.c --- 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++; diff -r b7e99bfeadc9 -r d84f2210a73c src/pixbuf-renderer.c --- 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; diff -r b7e99bfeadc9 -r d84f2210a73c src/preferences.c --- 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) { diff -r b7e99bfeadc9 -r d84f2210a73c src/slideshow.c --- 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)); } diff -r b7e99bfeadc9 -r d84f2210a73c src/thumb.c --- 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; diff -r b7e99bfeadc9 -r d84f2210a73c src/view_file_list.c --- 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);