From dac1f42ef81ac1119430fd294a6b35b0b8cd6837 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 25 Jan 2015 17:45:10 +0000 Subject: - 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 --- protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.h') 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 tokenMap; + map 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(); }; -- cgit v1.2.3