Mercurial > pidgin
changeset 31936:2b387aaeb89d
Don't access PurpleBuddy->proto_data directly, rather use the accessor functions.
author | andrew.victor@mxit.com |
---|---|
date | Tue, 23 Aug 2011 20:48:43 +0000 |
parents | 4b15c5c68aa4 |
children | e9ea77904829 |
files | libpurple/protocols/mxit/roster.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/mxit/roster.c Tue Aug 23 20:43:41 2011 +0000 +++ b/libpurple/protocols/mxit/roster.c Tue Aug 23 20:48:43 2011 +0000 @@ -312,8 +312,8 @@ /* create new buddy */ newbuddy = purple_buddy_new( session->acc, buddy->name, buddy->alias ); - newbuddy->proto_data = buddy->proto_data; - buddy->proto_data = NULL; + purple_buddy_set_protocol_data( newbuddy, purple_buddy_get_protocol_data( buddy ) ); + purple_buddy_set_protocol_data( buddy, NULL ); /* remove the buddy */ purple_blist_remove_buddy( buddy ); @@ -396,7 +396,7 @@ /* create new buddy */ buddy = purple_buddy_new( session->acc, contact->username, contact->alias ); - purple_buddy_set_protocol_data(buddy, contact); + purple_buddy_set_protocol_data( buddy, contact ); /* add new buddy to list */ purple_blist_add_buddy( buddy, NULL, group, NULL );