aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2009-03-06 19:53:13 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-03-06 19:53:13 +0800
commit26cad0730c6d4ccffc7b8bec79778b96460f11d0 (patch)
tree73f157e67ed491f7a87e9a5d8a99fc2c504dcdeb
parentf0cd7a19b1b32bd31b587342c6f3a6b17c79458d (diff)
downloadgsoc2013-empathy-26cad0730c6d4ccffc7b8bec79778b96460f11d0.tar
gsoc2013-empathy-26cad0730c6d4ccffc7b8bec79778b96460f11d0.tar.gz
gsoc2013-empathy-26cad0730c6d4ccffc7b8bec79778b96460f11d0.tar.bz2
gsoc2013-empathy-26cad0730c6d4ccffc7b8bec79778b96460f11d0.tar.lz
gsoc2013-empathy-26cad0730c6d4ccffc7b8bec79778b96460f11d0.tar.xz
gsoc2013-empathy-26cad0730c6d4ccffc7b8bec79778b96460f11d0.tar.zst
gsoc2013-empathy-26cad0730c6d4ccffc7b8bec79778b96460f11d0.zip
Use g_list_next (l) instead of l->next.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=2613
-rw-r--r--libempathy/empathy-log-manager.c18
-rw-r--r--libempathy/empathy-log-store-empathy.c2
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;