From 3b92d9d65e48885e8b27622c2c27055eb55cdab0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Fri, 5 Jul 2013 14:49:46 +0000 Subject: Facebook: Changed constants to enums, cleanup. git-svn-id: http://svn.miranda-ng.org/main/trunk@5240 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/proto.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/FacebookRM/src/proto.cpp') diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp index 9f37b2a8b8..ab0f3a6e3d 100644 --- a/protocols/FacebookRM/src/proto.cpp +++ b/protocols/FacebookRM/src/proto.cpp @@ -247,7 +247,7 @@ HANDLE FacebookProto::AddToList(int flags, PROTOSEARCHRESULT* psr) fbu.real_name += " "; fbu.real_name += surname; - HANDLE hContact = AddToContactList(&fbu, FACEBOOK_CONTACT_NONE); + HANDLE hContact = AddToContactList(&fbu, CONTACT_NONE); if (hContact) { if (flags & PALF_TEMPORARY) { db_set_b(hContact, "Clist", "Hidden", 1); @@ -544,7 +544,7 @@ int FacebookProto::CancelFriendship(WPARAM wParam,LPARAM lParam) // Ignore groupchats and, if deleting, also not-friends if (db_get_b(hContact, m_szModuleName, "ChatRoom", 0) - || (deleting && db_get_b(hContact, m_szModuleName, FACEBOOK_KEY_CONTACT_TYPE, 0) != FACEBOOK_CONTACT_FRIEND)) + || (deleting && db_get_b(hContact, m_szModuleName, FACEBOOK_KEY_CONTACT_TYPE, 0) != CONTACT_FRIEND)) return 0; ptrT tname = db_get_tsa(hContact, m_szModuleName, FACEBOOK_KEY_NAME); @@ -668,7 +668,7 @@ void FacebookProto::ReadNotificationWorker(void *p) data += "&fb_dtsg=" + (facy.dtsg_.length() ? facy.dtsg_ : "0"); data += "&__user=" + facy.self_.user_id; - facy.flap(FACEBOOK_REQUEST_NOTIFICATIONS_READ, NULL, &data); + facy.flap(REQUEST_NOTIFICATIONS_READ, NULL, &data); delete p; } \ No newline at end of file -- cgit v1.2.3