Revision: 16261
Author: aaronsheldon
Date: 2006-06-11 21:23:04 -0700 (Sun, 11 Jun 2006)
ViewCVS: http://svn.sourceforge.net/gaim/?rev=16261&view=rev
Log Message:
-----------
Saves 1 (pointless) check/loop through blist_node_next.
Modified Paths:
--------------
branches/soc-2006-blist-efficiency/src/blist.c
Modified: branches/soc-2006-blist-efficiency/src/blist.c
===================================================================
--- branches/soc-2006-blist-efficiency/src/blist.c 2006-06-11 21:48:41 UTC (rev 16260)
+++ branches/soc-2006-blist-efficiency/src/blist.c 2006-06-12 04:23:04 UTC (rev 16261)
@@ -731,13 +731,15 @@
GaimBlistNode *gaim_blist_node_next(GaimBlistNode *node, gboolean offline)
{
GaimBlistNode *ret = node;
-
+
+ if (offline)
+ return get_next_node(ret, TRUE);
do
{
ret = get_next_node(ret, TRUE);
- } while (ret && !offline && GAIM_BLIST_NODE_IS_BUDDY(ret) &&
+ } while (ret && GAIM_BLIST_NODE_IS_BUDDY(ret) &&
!gaim_account_is_connected(gaim_buddy_get_account((GaimBuddy *)ret)));
-
+
return ret;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|