diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-11-17 23:23:53 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-11-17 23:23:53 +0000 |
commit | b31c85fadafb41df147ff0c27baa04a23a48a27e (patch) | |
tree | d12d7cd770e1d193ed1ed683e36963cfb4abf7e0 /protocols/FacebookRM/src/process.cpp | |
parent | 96d149d7437f2a8dafcb5fb9fd535f0b2af47c69 (diff) |
Facebook: use TCHAR* instead of char* on many places (chat related)
git-svn-id: http://svn.miranda-ng.org/main/trunk@6932 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/process.cpp')
-rw-r--r-- | protocols/FacebookRM/src/process.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp index 3837a73f94..5a9ffb26f5 100644 --- a/protocols/FacebookRM/src/process.cpp +++ b/protocols/FacebookRM/src/process.cpp @@ -362,7 +362,7 @@ void FacebookProto::ProcessUnreadMessage(void *p) // Set thread id (TID) for later.
AddChat(room->thread_id.c_str(), room->chat_name.c_str());
hChatContact = ChatIDToHContact(room->thread_id);
- setString(hChatContact, FACEBOOK_KEY_TID, room->thread_id.c_str());
+ setTString(hChatContact, FACEBOOK_KEY_TID, room->thread_id.c_str());
for (std::map<std::string, std::string>::iterator jt = room->participants.begin(); jt != room->participants.end(); ) {
AddChatContact(room->thread_id.c_str(), jt->first.c_str(), jt->second.c_str());
@@ -373,7 +373,7 @@ void FacebookProto::ProcessUnreadMessage(void *p) if (!hChatContact)
hChatContact = ChatIDToHContact(room->thread_id);
- setString(hChatContact, FACEBOOK_KEY_MESSAGE_ID, room->thread_id.c_str());
+ setTString(hChatContact, FACEBOOK_KEY_MESSAGE_ID, room->thread_id.c_str());
ForkThread(&FacebookProto::ReadMessageWorker, hChatContact);
delete it->second;
@@ -385,7 +385,7 @@ void FacebookProto::ProcessUnreadMessage(void *p) for (std::vector<facebook_message*>::size_type i = 0; i < messages.size(); i++) {
if (messages[i]->isChat) {
debugLogA(" Got chat message: %s", messages[i]->message_text.c_str());
- UpdateChat(messages[i]->thread_id.c_str(), messages[i]->user_id.c_str(), messages[i]->sender_name.c_str(), messages[i]->message_text.c_str(), local_timestamp || !messages[i]->time ? ::time(NULL) : messages[i]->time);
+ UpdateChat(_A2T(messages[i]->thread_id.c_str()), messages[i]->user_id.c_str(), messages[i]->sender_name.c_str(), messages[i]->message_text.c_str(), local_timestamp || !messages[i]->time ? ::time(NULL) : messages[i]->time);
} else if (messages[i]->user_id != facy.self_.user_id) {
debugLogA(" Got message: %s", messages[i]->message_text.c_str());
facebook_user fbu;
|