summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-01-25 17:45:10 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-01-25 17:45:10 +0000
commitdac1f42ef81ac1119430fd294a6b35b0b8cd6837 (patch)
treee3b972fc4bb56a3158e57adc70df6655f6a34dcf /protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.h
parent357ae09c7eba86e783583566816285750933beaa (diff)
- class KeyStream extracted to the separate module;
- xml attributes redesigned to produce efficient code; - many small improvements git-svn-id: http://svn.miranda-ng.org/main/trunk@11905 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.h')
-rw-r--r--protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.h b/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.h
index 20faaea4e8..c87b58f32b 100644
--- a/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.h
+++ b/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.h
@@ -35,7 +35,7 @@ class WAConnection;
class BinTreeNodeWriter {
private:
WAConnection* conn;
- map<string,int> tokenMap;
+ map<string, int> tokenMap;
ISocketConnection *realOut;
ByteArrayOutputStream *out;
IMutex* mutex;
@@ -52,9 +52,9 @@ private:
void writeToken(int intValue);
void writeBytes(unsigned char* bytes, int length);
void writeInt24(int v);
- void writeInternal(ProtocolTreeNode* node);
- void writeDummyHeader();
- void processBuffer();
+ void writeInternal(const ProtocolTreeNode &node);
+ void writeDummyHeader();
+ void processBuffer();
public:
BinTreeNodeWriter(WAConnection* conn, ISocketConnection* connection, const char** dictionary, const int dictionarysize, IMutex* mutex);
@@ -62,8 +62,8 @@ public:
void flushBuffer(bool flushNetwork);
void flushBuffer(bool flushNetwork, int startingOffset);
void streamEnd();
- void write(ProtocolTreeNode* node);
- void write(ProtocolTreeNode* node, bool needsFlush);
+ void write(const ProtocolTreeNode &node);
+ void write(const ProtocolTreeNode &node, bool needsFlush);
virtual ~BinTreeNodeWriter();
};