[gnome-commander] noop: rename loop iterators



commit 790e4ce8df8704c49aca1610bf29b0e369ca6548
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Mon Jun 27 21:41:44 2011 +0200

    noop: rename loop iterators

 src/gnome-cmd-xfer.cc |    8 ++++----
 src/utils.cc          |    8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/gnome-cmd-xfer.cc b/src/gnome-cmd-xfer.cc
index e815ec4..c02051a 100644
--- a/src/gnome-cmd-xfer.cc
+++ b/src/gnome-cmd-xfer.cc
@@ -84,9 +84,9 @@ inline void free_xfer_data (XferData *data)
     g_list_free (data->src_uri_list);
 
     //  free the list with target uris
-    for (GList *tmp_list = data->dest_uri_list; tmp_list; tmp_list = tmp_list->next)
+    for (GList *i = data->dest_uri_list; i; i = i->next)
     {
-        GnomeVFSURI *uri = (GnomeVFSURI *) tmp_list->data;
+        GnomeVFSURI *uri = (GnomeVFSURI *) i->data;
         gnome_vfs_uri_unref (uri);
     }
 
@@ -373,9 +373,9 @@ gnome_cmd_xfer_uris_start (GList *src_uri_list,
     GnomeVFSURI *src_uri, *dest_uri;
 
     // Sanity check
-    for (GList *tmp = src_uri_list; tmp; tmp = tmp->next)
+    for (GList *i = src_uri_list; i; i = i->next)
     {
-        src_uri = (GnomeVFSURI *) tmp->data;
+        src_uri = (GnomeVFSURI *) i->data;
         if (uri_is_parent_to_dir_or_equal (src_uri, to_dir))
         {
             gnome_cmd_show_message (*main_win, _("Copying a directory into itself is a bad idea."), _("The whole operation was cancelled."));
diff --git a/src/utils.cc b/src/utils.cc
index ab1d33f..ce187bc 100644
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -753,9 +753,9 @@ GnomeVFSFileSize calc_tree_size (const GnomeVFSURI *dir_uri)
 
     if (result==GNOME_VFS_OK && list)
     {
-        for (GList *tmp = list; tmp; tmp = tmp->next)
+        for (GList *i = list; i; i = i->next)
         {
-            GnomeVFSFileInfo *info = (GnomeVFSFileInfo *) tmp->data;
+            GnomeVFSFileInfo *info = (GnomeVFSFileInfo *) i->data;
             if (strcmp (info->name, ".") != 0 && strcmp (info->name, "..") != 0)
             {
                 if (info->type == GNOME_VFS_FILE_TYPE_DIRECTORY)
@@ -769,8 +769,8 @@ GnomeVFSFileSize calc_tree_size (const GnomeVFSURI *dir_uri)
             }
         }
 
-        for (GList *tmp = list; tmp; tmp = tmp->next)
-            gnome_vfs_file_info_unref ((GnomeVFSFileInfo *) tmp->data);
+        for (GList *i = list; i; i = i->next)
+            gnome_vfs_file_info_unref ((GnomeVFSFileInfo *) i->data);
 
         g_list_free (list);
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]