summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/proto.cpp
diff options
context:
space:
mode:
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;
}