6 for() vs 201 for (): winner is for ().
authorLaurent Monin <geeqie@norz.org>
Thu, 24 Apr 2008 15:53:08 +0000 (15:53 +0000)
committerLaurent Monin <geeqie@norz.org>
Thu, 24 Apr 2008 15:53:08 +0000 (15:53 +0000)
src/cache.c
src/pixbuf-renderer.c
src/preferences.c
src/slideshow.c
src/thumb.c
src/view_file_list.c

index 200716e..9fce74c 100644 (file)
@@ -133,7 +133,7 @@ static gint cache_sim_write_similarity(FILE *f, CacheData *cd)
 
                        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++;
index 09019cd..c16ab7d 100644 (file)
@@ -893,7 +893,7 @@ static void pr_overlay_draw(PixbufRenderer *pr, gint x, gint y, gint w, gint h,
                                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;
 
index 475b21a..4747ba9 100644 (file)
@@ -154,7 +154,7 @@ static void config_window_apply(void)
        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)
                        {
index 9288518..e36dd79 100644 (file)
@@ -56,7 +56,7 @@ static GList *generate_list(SlideShowData *ss)
        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));
                        }
index 19262c9..58e6ad2 100644 (file)
@@ -631,7 +631,7 @@ static GdkPixbuf *get_xv_thumbnail(gchar *thumb_filename, gint max_w, gint max_h
                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;
index 6b31d9c..4b6664c 100644 (file)
@@ -2031,7 +2031,7 @@ ViewFileList *vflist_new(const gchar *path, gint thumbs)
 
        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);