Changeset 6365 for trunk/qt4-gui/src/userevents/usersendcommon.cpp
- Timestamp:
- 07/01/08 03:39:13 (5 months ago)
- Files:
-
- 1 modified
-
trunk/qt4-gui/src/userevents/usersendcommon.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt4-gui/src/userevents/usersendcommon.cpp
r6294 r6365 849 849 const CEventContactList* ue = dynamic_cast<const CEventContactList*>(e->UserEvent()); 850 850 const ContactList& clist = ue->Contacts(); 851 UinList uins; 852 851 UserStringList users; 852 853 // ContactList is const but string list holds "char*" so we have to copy each string 853 854 for (ContactList::const_iterator i = clist.begin(); i != clist.end(); i++) 854 u ins.push_back((*i)->Uin());855 856 if (u ins.size() == 0)855 users.push_back(strdup((*i)->IdString())); 856 857 if (users.size() == 0) 857 858 break; 858 859 859 icqEventTag = gLicqDaemon->icqSendContactList(strtoul(myUsers.front().c_str(), NULL, 10), 860 uins, online, level, false, &myIcqColor); 860 icqEventTag = gLicqDaemon->icqSendContactList(myUsers.front().c_str(), 861 users, online, level, false, &myIcqColor); 862 863 // Free the strings in the list 864 for (UserStringList::iterator i = users.begin(); i != users.end(); ++i) 865 free(*i); 861 866 862 867 break;
