diff options
author | George Hazan <george.hazan@gmail.com> | 2015-01-25 19:54:43 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-01-25 19:54:43 +0000 |
commit | 58ac4567a402d383c3edb0749b9f2fb88b8422d6 (patch) | |
tree | 224f909ab2abea950795d88b15b8b8a9e486551b /protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeReader.h | |
parent | dac1f42ef81ac1119430fd294a6b35b0b8cd6837 (diff) |
less pointers, less memory problems
git-svn-id: http://svn.miranda-ng.org/main/trunk@11906 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeReader.h')
-rw-r--r-- | protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeReader.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeReader.h b/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeReader.h index 4288c671f3..29fdf4ec0a 100644 --- a/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeReader.h +++ b/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeReader.h @@ -32,13 +32,11 @@ public: class BinTreeNodeReader {
private:
- const char** tokenMap;
- int tokenmapsize;
ISocketConnection *rawIn;
ByteArrayInputStream* in;
- std::vector<unsigned char>* buf;
+ std::vector<unsigned char> buf;
int readSize;
- WAConnection* conn;
+ WAConnection *conn;
ProtocolTreeNode* nextTreeInternal();
bool isListTag(int b);
@@ -64,7 +62,7 @@ private: public:
- BinTreeNodeReader(WAConnection* conn, ISocketConnection* connection, const char** dictionary, const int dictionarysize);
+ BinTreeNodeReader(WAConnection* conn, ISocketConnection* connection);
virtual ~BinTreeNodeReader();
ProtocolTreeNode* nextTree();
void streamStart();
|