[telepathy-glib/master] account{, -manager}: small optimization when concating lists

Jonny Lamb jonny.lamb at collabora.co.uk
Sat Sep 26 09:46:52 PDT 2009


Signed-off-by: Jonny Lamb <jonny.lamb at collabora.co.uk>
---
 telepathy-glib/account-manager.c |    2 +-
 telepathy-glib/account.c         |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/telepathy-glib/account-manager.c b/telepathy-glib/account-manager.c
index a526593..8eb4a00 100644
--- a/telepathy-glib/account-manager.c
+++ b/telepathy-glib/account-manager.c
@@ -254,7 +254,7 @@ _tp_account_manager_become_ready (TpAccountManager *self,
       if (_tp_account_manager_check_features (self, cb->features))
         {
           priv->callbacks = g_list_remove_link (priv->callbacks, c);
-          remove = g_list_concat (remove, c);
+          remove = g_list_concat (c, remove);
         }
     }
 
diff --git a/telepathy-glib/account.c b/telepathy-glib/account.c
index 22b12ae..7ad2c43 100644
--- a/telepathy-glib/account.c
+++ b/telepathy-glib/account.c
@@ -307,7 +307,7 @@ _tp_account_become_ready (TpAccount *self,
       if (_tp_account_check_features (self, cb->features))
         {
           priv->callbacks = g_list_remove_link (priv->callbacks, c);
-          remove = g_list_concat (remove, c);
+          remove = g_list_concat (c, remove);
         }
     }
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list