From d0624914d7e8bf90d9b911e48a7bf8754a83a714 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 20 Jun 2017 13:30:09 +0300 Subject: Facebook: fix for the wrong pointer --- protocols/FacebookRM/src/client.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'protocols/FacebookRM') diff --git a/protocols/FacebookRM/src/client.h b/protocols/FacebookRM/src/client.h index 6689fe8a4e..6e3a3e2e87 100644 --- a/protocols/FacebookRM/src/client.h +++ b/protocols/FacebookRM/src/client.h @@ -95,8 +95,8 @@ public: // Client vs protocol communication - void client_notify(wchar_t* message); - void info_notify(wchar_t* message); + void client_notify(wchar_t* message); + void info_notify(wchar_t* message); //////////////////////////////////////////////////////////// @@ -122,9 +122,9 @@ public: std::set typers; // store info about typing contacts, because Facebook doesn't send "stopped typing" event when there is actual message being sent std::map readers; - char* load_cookies(); - void store_headers(http::response* resp, NETLIBHTTPHEADER* headers, int headers_count); - void clear_cookies(); + char* load_cookies(); + void store_headers(http::response* resp, NETLIBHTTPHEADER* headers, int headers_count); + void clear_cookies(); void clear_notifications(); void clear_chatrooms(); void clear_readers(); @@ -137,9 +137,9 @@ public: unsigned int error_count_; - bool handle_entry(const std::string &method); - bool handle_success(const std::string &method); - bool handle_error(const std::string &method, int force_disconnect = 0); + bool handle_entry(const std::string &method); + bool handle_success(const std::string &method); + bool handle_error(const std::string &method, int force_disconnect = 0); void __inline increment_error() { this->error_count_++; } void __inline decrement_error() { if (error_count_ > 0) error_count_--; } @@ -153,7 +153,7 @@ public: return ""; // FIXME: What's this value and where it come from? Looks like it is the same through all requests. } - __inline const char *__req() { + __inline CMStringA __req() { // Increment request number and convert it to string with radix 36 (whole numbers + whole alphabet) char buffer[10]; itoa(InterlockedIncrement(&this->chat_req_), buffer, 36); -- cgit v1.2.3