empathy r1606 - trunk/src



Author: xclaesse
Date: Fri Oct 17 12:46:28 2008
New Revision: 1606
URL: http://svn.gnome.org/viewvc/empathy?rev=1606&view=rev

Log:
Use a different loop with nodes to shorten code. (Jonny Lamb)

Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>

Modified:
   trunk/src/empathy-import-dialog.c

Modified: trunk/src/empathy-import-dialog.c
==============================================================================
--- trunk/src/empathy-import-dialog.c	(original)
+++ trunk/src/empathy-import-dialog.c	Fri Oct 17 12:46:28 2008
@@ -274,8 +274,7 @@
   if (rootnode == NULL)
     return;
 
-  node = rootnode->children;
-  while (node)
+  for (node = rootnode->children; node; node = node->next)
     {
       if (strcmp ((gchar *) node->name, PIDGIN_ACCOUNT_TAG_ACCOUNT) == 0)
         {
@@ -364,7 +363,6 @@
           g_hash_table_unref (settings);
         }
 
-      node = node->next;
     }
 
   xmlFreeDoc(doc);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]