[gnome-photos/wip/rishi/manager-model: 3/5] item-manager: Rename a variable
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/manager-model: 3/5] item-manager: Rename a variable
- Date: Sat, 5 Nov 2016 17:55:41 +0000 (UTC)
commit bf87cc663b1cb2a32d8f08fa5349ad566795056a
Author: Debarshi Ray <debarshir gnome org>
Date: Sat Nov 5 18:46:53 2016 +0100
item-manager: Rename a variable
This will make the subsequent commit easier to read.
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 a33ebe4..b54e7ba 100644
--- a/src/photos-item-manager.c
+++ b/src/photos-item-manager.c
@@ -893,14 +893,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]