From 11822f442f96b074e5e39bd4cc14d277205a9307 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 2 Jun 2013 18:35:56 +0000 Subject: first version of Wassup that compiles git-svn-id: http://svn.miranda-ng.org/main/trunk@4863 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeReader.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeReader.cpp') 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 - - 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(newsize); } -- cgit v1.2.3