diff options
author | Robert Pösel <robyer@seznam.cz> | 2016-12-11 22:04:37 +0100 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2016-12-11 22:05:31 +0100 |
commit | 686c461a0f810bb035bd27b26ba165b17c56d02c (patch) | |
tree | 8665f9c50e49452f1d5e0e662dcea7961690a349 /protocols/FacebookRM/src | |
parent | 459a25ab00ba1a75cc8fd41656e98f95c1a45e9d (diff) |
Facebook: Fix IntelliSense error
Diffstat (limited to 'protocols/FacebookRM/src')
-rw-r--r-- | protocols/FacebookRM/src/contacts.cpp | 2 | ||||
-rw-r--r-- | protocols/FacebookRM/src/process.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/contacts.cpp b/protocols/FacebookRM/src/contacts.cpp index f0b8852938..ca6f1c430c 100644 --- a/protocols/FacebookRM/src/contacts.cpp +++ b/protocols/FacebookRM/src/contacts.cpp @@ -51,7 +51,7 @@ void FacebookProto::SaveName(MCONTACT hContact, const facebook_user *fbu) // Save nick std::string nick = fbu->real_name; - if (!getBool(FACEBOOK_KEY_NAME_AS_NICK, 1) && !fbu->nick.empty()) + if (!getBool(FACEBOOK_KEY_NAME_AS_NICK, DEFAULT_NAME_AS_NICK) && !fbu->nick.empty()) nick = fbu->nick; updateStringUtf(this, hContact, FACEBOOK_KEY_NICK, nick); diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp index b0ed92b683..599bb09d1a 100644 --- a/protocols/FacebookRM/src/process.cpp +++ b/protocols/FacebookRM/src/process.cpp @@ -307,7 +307,7 @@ void FacebookProto::LoadLastMessages(void *pParam) int count = min(FACEBOOK_MESSAGES_ON_OPEN_LIMIT, getByte(FACEBOOK_KEY_MESSAGES_ON_OPEN_COUNT, DEFAULT_MESSAGES_ON_OPEN_COUNT)); - HttpRequest *request = new ThreadInfoRequest(&facy, isChat, item_id, count); + HttpRequest *request = new ThreadInfoRequest(&facy, isChat, (const char*) item_id, count); http::response resp = facy.sendRequest(request); if (resp.code != HTTP_CODE_OK || resp.data.empty()) { |