From e64e17858c88e0b8302a34cebc02be0019422947 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 26 Jan 2015 20:59:45 +0000 Subject: minus another shitty new git-svn-id: http://svn.miranda-ng.org/main/trunk@11920 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/WhatsApp/src/WhatsAPI++/WALogin.cpp | 8 ++++---- protocols/WhatsApp/src/WhatsAPI++/WALogin.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'protocols/WhatsApp/src/WhatsAPI++') diff --git a/protocols/WhatsApp/src/WhatsAPI++/WALogin.cpp b/protocols/WhatsApp/src/WhatsAPI++/WALogin.cpp index dd29850885..c788fd3124 100644 --- a/protocols/WhatsApp/src/WhatsAPI++/WALogin.cpp +++ b/protocols/WhatsApp/src/WhatsAPI++/WALogin.cpp @@ -28,7 +28,7 @@ WALogin::WALogin(WAConnection* connection, const std::string& password) this->expire_date = 0L; } -std::vector* WALogin::login(const std::vector& authBlob) +std::vector WALogin::login(const std::vector& authBlob) { m_pConnection->out->streamStart(m_pConnection->domain, m_pConnection->resource); @@ -96,7 +96,7 @@ std::vector* WALogin::getAuthBlob(const std::vector* WALogin::readFeaturesUntilChallengeOrSuccess() +std::vector WALogin::readFeaturesUntilChallengeOrSuccess() { while (ProtocolTreeNode *root = m_pConnection->in->nextTree()) { #ifdef _DEBUG @@ -117,10 +117,10 @@ std::vector* WALogin::readFeaturesUntilChallengeOrSuccess() m_pConnection->logData("Send response"); std::vector data = this->readSuccess(); m_pConnection->logData("Read success"); - return new std::vector(data.begin(), data.end()); + return std::vector(data.begin(), data.end()); } if (ProtocolTreeNode::tagEquals(root, "success")) { - std::vector* ret = new std::vector(root->data->begin(), root->data->end()); + std::vector ret(root->data->begin(), root->data->end()); this->parseSuccessNode(root); delete root; return ret; diff --git a/protocols/WhatsApp/src/WhatsAPI++/WALogin.h b/protocols/WhatsApp/src/WhatsAPI++/WALogin.h index 05e654549e..1e4269b531 100644 --- a/protocols/WhatsApp/src/WhatsAPI++/WALogin.h +++ b/protocols/WhatsApp/src/WhatsAPI++/WALogin.h @@ -50,7 +50,7 @@ private: void sendResponse(const std::vector& challengeData); void sendFeatures(); void sendAuth(const std::vector& nonce); - std::vector* readFeaturesUntilChallengeOrSuccess(); + std::vector readFeaturesUntilChallengeOrSuccess(); void parseSuccessNode(ProtocolTreeNode *node); std::vector readSuccess(); @@ -62,7 +62,7 @@ public: WALogin(WAConnection* connection, const std::string& password); ~WALogin(); - std::vector* login(const std::vector& blobLength); + std::vector login(const std::vector &blob); }; #endif /* WALOGIN_H_ */ -- cgit v1.2.3