summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/proto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-07-09 15:47:48 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-07-09 15:47:48 +0000
commite52132834312c3d956323650f4fa34e94b95325e (patch)
tree21fe856be6322cf844945c7dbde57c9fa0f25156 /protocols/WhatsApp/src/proto.cpp
parent6ea844fd51084c2e78fe400e1a9034c7960a922a (diff)
forgotten to adapt wasuup
git-svn-id: http://svn.miranda-ng.org/main/trunk@5298 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/proto.cpp')
-rw-r--r--protocols/WhatsApp/src/proto.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/protocols/WhatsApp/src/proto.cpp b/protocols/WhatsApp/src/proto.cpp
index 1c8fab0515..bd74705bce 100644
--- a/protocols/WhatsApp/src/proto.cpp
+++ b/protocols/WhatsApp/src/proto.cpp
@@ -1,9 +1,8 @@
#include "common.h"
-WhatsAppProto::WhatsAppProto(const char* proto_name, const TCHAR* username)
+WhatsAppProto::WhatsAppProto(const char* proto_name, const TCHAR* username) :
+ PROTO<WhatsAppProto>(proto_name, username)
{
- ProtoConstructor(this, proto_name, username);
-
this->challenge = new std::vector<unsigned char>;
this->msgId = 0;
this->msgIdHeader = time(NULL);
@@ -63,8 +62,6 @@ WhatsAppProto::~WhatsAppProto()
if (this->challenge != NULL)
delete this->challenge;
-
- ProtoDestructor(this);
}
DWORD_PTR WhatsAppProto::GetCaps( int type, HANDLE hContact )
@@ -161,8 +158,7 @@ HANDLE WhatsAppProto::SearchBasic( const PROTOCHAR* id )
return 0;
TCHAR* email = mir_tstrdup(id);
- ForkThread(&WhatsAppProto::SearchAckThread, this, (void*)email);
-
+ ForkThread(&WhatsAppProto::SearchAckThread, email);
return email;
}