diff options
author | George Hazan <george.hazan@gmail.com> | 2013-06-02 18:35:56 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-06-02 18:35:56 +0000 |
commit | 11822f442f96b074e5e39bd4cc14d277205a9307 (patch) | |
tree | 8257ab929e3f2d5e626f693ca13c90b50aa196f0 /protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeReader.cpp | |
parent | 329ad84fa5b5a813b032f416e959eb2b0bb3582e (diff) |
first version of Wassup that compiles
git-svn-id: http://svn.miranda-ng.org/main/trunk@4863 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeReader.cpp')
-rw-r--r-- | protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeReader.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeReader.cpp b/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeReader.cpp index 7155334c7f..f7909fa625 100644 --- a/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeReader.cpp +++ b/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeReader.cpp @@ -4,15 +4,13 @@ * Created on: 26/06/2012
* Author: Antonio
*/
-#include "stdafx.h"
+#include "../common.h"
#include "BinTreeNodeReader.h"
#include "WAException.h"
#include "ProtocolTreeNode.h"
#include "utilities.h"
#include <string>
-
-
BinTreeNodeReader::BinTreeNodeReader(WAConnection* conn, ISocketConnection* connection, const char** dictionary, const int dictionarysize) {
this->conn = conn;
this->rawIn = connection;
@@ -263,7 +261,7 @@ std::string BinTreeNodeReader::getToken(int token) { return ret;
}
- +
void BinTreeNodeReader::getTopLevelStream() {
int stanzaSize;
int flags;
@@ -276,7 +274,7 @@ void BinTreeNodeReader::getTopLevelStream() { stanzaSize = (size0 << 16) + (size1 << 8) + size2;
if (this->buf->size() < (size_t) stanzaSize) {
- int newsize = std::max((int) (this->buf->size() * 3 / 2), stanzaSize);
+ int newsize = max((int) (this->buf->size() * 3 / 2), stanzaSize);
delete this->buf;
this->buf = new std::vector<unsigned char>(newsize);
}
|