From ca5001026a94f702c4012c5e8d2093ad3f51c1fa Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 21 Apr 2018 12:33:31 +0300 Subject: code cleaning: - in conformance to C++'11 rules, we don't declare a method as virtual if it's declared as override; - cause this code isn't visible in Pascal anymore, there's no need to use __cdecl calling convention for virtual methods; - since PROTO_INTERFACE is a regular C++ class, there's no need to use old style service declarations for virtual methods like OnModulesLoaded / OnShutdown --- protocols/Tox/src/tox_accounts.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'protocols/Tox/src/tox_accounts.cpp') diff --git a/protocols/Tox/src/tox_accounts.cpp b/protocols/Tox/src/tox_accounts.cpp index c9cb35c921..2d02f68c4b 100644 --- a/protocols/Tox/src/tox_accounts.cpp +++ b/protocols/Tox/src/tox_accounts.cpp @@ -1,17 +1,5 @@ #include "stdafx.h" -int CToxProto::OnAccountLoaded(WPARAM, LPARAM) -{ - Clist_GroupCreate(0, m_defaultGroup); - - HookProtoEvent(ME_OPT_INITIALISE, &CToxProto::OnOptionsInit); - HookProtoEvent(ME_USERINFO_INITIALISE, &CToxProto::OnUserInfoInit); - HookProtoEvent(ME_MSG_PRECREATEEVENT, &CToxProto::OnPreCreateMessage); - - InitCustomDbEvents(); - return 0; -} - int CToxProto::OnAccountRenamed(WPARAM, LPARAM) { mir_cslock lock(m_profileLock); -- cgit v1.2.3