[gnome-photos] item-manager: Rename a variable
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] item-manager: Rename a variable
- Date: Tue, 15 Nov 2016 10:56:05 +0000 (UTC)
commit 481fcbe946132801d2a6476850d78901eeb242c2
Author: Debarshi Ray <debarshir gnome org>
Date: Sat Nov 5 18:46:53 2016 +0100
item-manager: Rename a variable
We will convert the outer while loop into a for loop in a subsequent
commit, and for that we will need an index variable.
https://bugzilla.gnome.org/show_bug.cgi?id=774191
src/photos-item-manager.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/photos-item-manager.c b/src/photos-item-manager.c
index 33cbde3..ef71c23 100644
--- a/src/photos-item-manager.c
+++ b/src/photos-item-manager.c
@@ -895,14 +895,14 @@ photos_item_manager_clear (PhotosItemManager *self, PhotosWindowMode mode)
while (g_hash_table_iter_next (&iter, (gpointer *) &id, (gpointer *) &item))
{
PhotosBaseItem *item1 = NULL;
- guint i;
+ guint j;
- for (i = 1; self->item_mngr_chldrn[i] != NULL; i++)
+ for (j = 1; self->item_mngr_chldrn[j] != NULL; j++)
{
- if (item_mngr_chld == self->item_mngr_chldrn[i])
+ if (item_mngr_chld == self->item_mngr_chldrn[j])
continue;
- item1 = PHOTOS_BASE_ITEM (photos_base_manager_get_object_by_id (self->item_mngr_chldrn[i], id));
+ item1 = PHOTOS_BASE_ITEM (photos_base_manager_get_object_by_id (self->item_mngr_chldrn[j], id));
if (item1 != NULL)
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]