summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/proto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-07-28 12:01:09 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-07-28 12:01:09 +0000
commit2e2d9de08e3eb747f88cd3a9aeb750a3c34078a7 (patch)
tree7b0774375566185dc27d708b2d7aadd8f9a81eca /protocols/FacebookRM/src/proto.cpp
parentae3cee537d478fba0f32e561a12d62213a85a4d5 (diff)
code adaptation for getTStringA
git-svn-id: http://svn.miranda-ng.org/main/trunk@5508 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/proto.cpp')
-rw-r--r--protocols/FacebookRM/src/proto.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp
index a00e4e45e9..c4cebb6629 100644
--- a/protocols/FacebookRM/src/proto.cpp
+++ b/protocols/FacebookRM/src/proto.cpp
@@ -204,7 +204,7 @@ int FacebookProto::SetAwayMsg(int status, const PROTOCHAR *msg)
}
void FacebookProto::SetAwayMsgWorker(void *p)
-{
+{
if (p != NULL) {
status_data *data = static_cast<status_data*>(p);
facy.post_status(data);
@@ -544,7 +544,7 @@ INT_PTR FacebookProto::Poke(WPARAM wParam,LPARAM lParam)
ptrA id(getStringA(hContact, FACEBOOK_KEY_ID));
if (id == NULL)
return 1;
-
+
ForkThread(&FacebookProto::SendPokeWorker, new std::string(id));
return 0;
}
@@ -562,9 +562,9 @@ INT_PTR FacebookProto::CancelFriendship(WPARAM wParam,LPARAM lParam)
if ( isChatRoom(hContact) || (deleting && getByte(hContact, FACEBOOK_KEY_CONTACT_TYPE, 0) != CONTACT_FRIEND))
return 0;
- ptrT tname = db_get_tsa(hContact, m_szModuleName, FACEBOOK_KEY_NAME);
+ ptrT tname( getTStringA(hContact, FACEBOOK_KEY_NAME));
if (tname == NULL)
- tname = db_get_tsa(hContact, m_szModuleName, FACEBOOK_KEY_ID);
+ tname = getTStringA(hContact, FACEBOOK_KEY_ID);
TCHAR tstr[256];
mir_sntprintf(tstr,SIZEOF(tstr),TranslateT("Do you want to cancel your friendship with '%s'?"), tname);
@@ -598,7 +598,7 @@ INT_PTR FacebookProto::RequestFriendship(WPARAM wParam,LPARAM lParam)
ptrA id( getStringA(hContact, FACEBOOK_KEY_ID));
if (id == NULL)
return 1;
-
+
ForkThread(&FacebookProto::AddContactToServer, new std::string(id));
return 0;
}
@@ -656,7 +656,7 @@ void FacebookProto::OpenUrl(std::string url)
// Make realtive url
if (!isRelativeUrl) {
url = url.substr(pos + facebookDomain.length());
-
+
// Strip eventual port
pos = url.find("/");
if (pos != std::string::npos && pos != 0)
@@ -684,6 +684,6 @@ void FacebookProto::ReadNotificationWorker(void *p)
data += "&__user=" + facy.self_.user_id;
facy.flap(REQUEST_NOTIFICATIONS_READ, NULL, &data);
-
+
delete p;
} \ No newline at end of file