empathy r1606 - trunk/src
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r1606 - trunk/src
- Date: Fri, 17 Oct 2008 12:46:29 +0000 (UTC)
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]