From 0f37fbfbfe24563a6be07f9abd245374e66cb173 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 19 Sep 2016 12:27:44 +0000 Subject: chat code reordering git-svn-id: http://svn.miranda-ng.org/main/trunk@17317 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/communication.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'protocols/FacebookRM/src') diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp index 2e59510c22..419c7dbf7d 100644 --- a/protocols/FacebookRM/src/communication.cpp +++ b/protocols/FacebookRM/src/communication.cpp @@ -1144,8 +1144,7 @@ bool facebook_client::post_status(status_data *status) if (status->isPage) { // Switch to page identity by which name we will share this post - HttpRequest *request = new SwitchIdentityRequest(this->dtsg_.c_str(), status->user_id.c_str()); - sendRequest(request); + sendRequest(new SwitchIdentityRequest(this->dtsg_.c_str(), status->user_id.c_str())); } std::string linkData; @@ -1165,8 +1164,7 @@ bool facebook_client::post_status(status_data *status) if (status->isPage) { // Switch back to our identity - HttpRequest *request = new SwitchIdentityRequest(this->dtsg_.c_str(), this->self_.user_id.c_str()); - sendRequest(request); + sendRequest(new SwitchIdentityRequest(this->dtsg_.c_str(), this->self_.user_id.c_str())); } // cleanup status elements (delete users) -- cgit v1.2.3