changeset 17753:25d808baa395

In purple_conv_chat_clear_users(), use g_list_prepend() instead of g_list_append() as it's faster. The UI mustn't be expecting these in a given order anyway.
author Richard Laager <rlaager@wiktel.com>
date Wed, 06 Jun 2007 01:40:46 +0000
parents 33063a3940a8
children b5a8cea54876
files libpurple/conversation.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/conversation.c	Wed Jun 06 00:58:02 2007 +0000
+++ b/libpurple/conversation.c	Wed Jun 06 01:40:46 2007 +0000
@@ -1810,7 +1810,7 @@
 	if (ops != NULL && ops->chat_remove_users != NULL) {
 		for (l = users; l; l = l->next) {
 			PurpleConvChatBuddy *cb = l->data;
-			names = g_list_append(names, cb->name);
+			names = g_list_prepend(names, cb->name);
 		}
 		ops->chat_remove_users(conv, names);
 		g_list_free(names);