diff options
| author | George Hazan <george.hazan@gmail.com> | 2015-01-26 14:20:08 +0000 | 
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2015-01-26 14:20:08 +0000 | 
| commit | 53867c8c7ca7a578d8f36b619f352700ba34c9ad (patch) | |
| tree | 1bcb09df18d80a69fbb7d57f521ae9c2c45421d6 /protocols/WhatsApp/src/WhatsAPI++/ProtocolTreeNode.h | |
| parent | 8af2738f3ce3fd91a7dbebbe9e747b441036bc08 (diff) | |
fix for a crash on message sending
git-svn-id: http://svn.miranda-ng.org/main/trunk@11917 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/WhatsAPI++/ProtocolTreeNode.h')
| -rw-r--r-- | protocols/WhatsApp/src/WhatsAPI++/ProtocolTreeNode.h | 11 | 
1 files changed, 7 insertions, 4 deletions
diff --git a/protocols/WhatsApp/src/WhatsAPI++/ProtocolTreeNode.h b/protocols/WhatsApp/src/WhatsAPI++/ProtocolTreeNode.h index 6be09cef8d..aeb1b6e18e 100644 --- a/protocols/WhatsApp/src/WhatsAPI++/ProtocolTreeNode.h +++ b/protocols/WhatsApp/src/WhatsAPI++/ProtocolTreeNode.h @@ -45,15 +45,20 @@ struct XATTRI  	int value;
  };
 -class ProtocolTreeNode {
 +class ProtocolTreeNode
 +{
 +	ProtocolTreeNode(const ProtocolTreeNode&); // to prevent copying
 +
  public:
 -   vector<unsigned char>* data;
 +	vector<unsigned char>* data;
     string tag;
     map<string, string> *attributes;
     vector<ProtocolTreeNode*> *children;
     ProtocolTreeNode(const string& tag, ProtocolTreeNode* child);
     ProtocolTreeNode(const string& tag, vector<unsigned char>* data = NULL, vector<ProtocolTreeNode*> *children = NULL);
 +	~ProtocolTreeNode();
 +
     string toString() const; 
     ProtocolTreeNode* getChild(const string& id);
     ProtocolTreeNode* getChild(size_t id);
 @@ -65,8 +70,6 @@ public:     static bool tagEquals(ProtocolTreeNode *node, const string& tag);
     static void require(ProtocolTreeNode *node, const string& tag);
 -
 -   virtual ~ProtocolTreeNode();
  };
  ProtocolTreeNode& operator<<(ProtocolTreeNode&, const XATTR&);
  | 
