summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/communication.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-09-19 12:27:44 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-09-19 12:27:44 +0000
commit0f37fbfbfe24563a6be07f9abd245374e66cb173 (patch)
tree28efbce80dc0f81698b56afa073115b0f8543a59 /protocols/FacebookRM/src/communication.cpp
parent8fbb710f69be547c9a1fb45346bbd01db9d23bee (diff)
chat code reordering
git-svn-id: http://svn.miranda-ng.org/main/trunk@17317 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/communication.cpp')
-rw-r--r--protocols/FacebookRM/src/communication.cpp6
1 files changed, 2 insertions, 4 deletions
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)