From 26cad0730c6d4ccffc7b8bec79778b96460f11d0 Mon Sep 17 00:00:00 2001 From: Jonny Lamb Date: Fri, 6 Mar 2009 11:53:13 +0000 Subject: Use g_list_next (l) instead of l->next. Signed-off-by: Jonny Lamb svn path=/trunk/; revision=2613 --- libempathy/empathy-log-manager.c | 18 +++++++++--------- libempathy/empathy-log-store-empathy.c | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/libempathy/empathy-log-manager.c b/libempathy/empathy-log-manager.c index 196519a59..beded4c21 100644 --- a/libempathy/empathy-log-manager.c +++ b/libempathy/empathy-log-manager.c @@ -57,7 +57,7 @@ log_manager_finalize (GObject *object) priv = GET_PRIV (object); - for (l = priv->stores; l; l = l->next) + for (l = priv->stores; l; l = g_list_next (l)) { EmpathyLogStore *store = (EmpathyLogStore *) l->data; g_object_unref (store); @@ -143,7 +143,7 @@ empathy_log_manager_add_message (EmpathyLogManager *manager, priv = GET_PRIV (manager); - for (l = priv->stores; l; l = l->next) + for (l = priv->stores; l; l = g_list_next (l)) { if (!tp_strdiff (empathy_log_store_get_name ( EMPATHY_LOG_STORE (l->data)), add_store)) @@ -176,7 +176,7 @@ empathy_log_manager_exists (EmpathyLogManager *manager, priv = GET_PRIV (manager); - for (l = priv->stores; l; l = l->next) + for (l = priv->stores; l; l = g_list_next (l)) { if (empathy_log_store_exists (EMPATHY_LOG_STORE (l->data), account, chat_id, chatroom)) @@ -212,7 +212,7 @@ empathy_log_manager_get_dates (EmpathyLogManager *manager, priv = GET_PRIV (manager); - for (l = priv->stores; l; l = l->next) + for (l = priv->stores; l; l = g_list_next (l)) { EmpathyLogStore *store = EMPATHY_LOG_STORE (l->data); @@ -251,7 +251,7 @@ empathy_log_manager_get_messages_for_date (EmpathyLogManager *manager, priv = GET_PRIV (manager); - for (l = priv->stores; l; l = l->next) + for (l = priv->stores; l; l = g_list_next (l)) { EmpathyLogStore *store = EMPATHY_LOG_STORE (l->data); @@ -297,7 +297,7 @@ empathy_log_manager_get_filtered_messages (EmpathyLogManager *manager, priv = GET_PRIV (manager); /* Get num_messages from each log store */ - for (l = priv->stores; l; l = l->next) + for (l = priv->stores; l; l = g_list_next (l)) { EmpathyLogStore *store = EMPATHY_LOG_STORE (l->data); @@ -335,7 +335,7 @@ empathy_log_manager_get_chats (EmpathyLogManager *manager, priv = GET_PRIV (manager); - for (l = priv->stores; l; l = l->next) + for (l = priv->stores; l; l = g_list_next (l)) { EmpathyLogStore *store = EMPATHY_LOG_STORE (l->data); @@ -358,7 +358,7 @@ empathy_log_manager_search_new (EmpathyLogManager *manager, priv = GET_PRIV (manager); - for (l = priv->stores; l; l = l->next) + for (l = priv->stores; l; l = g_list_next (l)) { EmpathyLogStore *store = EMPATHY_LOG_STORE (l->data); @@ -387,7 +387,7 @@ empathy_log_manager_search_free (GList *hits) { GList *l; - for (l = hits; l; l = l->next) + for (l = hits; l; l = g_list_next (l)) { empathy_log_manager_search_hit_free (l->data); } diff --git a/libempathy/empathy-log-store-empathy.c b/libempathy/empathy-log-store-empathy.c index 8a43c4892..5d370bf9f 100644 --- a/libempathy/empathy-log-store-empathy.c +++ b/libempathy/empathy-log-store-empathy.c @@ -575,7 +575,7 @@ log_store_empathy_search_new (EmpathyLogStore *self, files = log_store_empathy_get_all_files (self, NULL); DEBUG ("Found %d log files in total", g_list_length (files)); - for (l = files; l; l = l->next) + for (l = files; l; l = g_list_next (l)) { gchar *filename; GMappedFile *file; -- cgit v1.2.3