From ca55ac7905e8ffd1ee979b5b5fe7121fa7a03a5d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 28 May 2018 22:38:35 +0300 Subject: all plugins => CMPlugin virtual functions --- protocols/ICQCorp/src/corp.cpp | 4 ++-- protocols/ICQCorp/src/stdafx.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'protocols/ICQCorp/src') diff --git a/protocols/ICQCorp/src/corp.cpp b/protocols/ICQCorp/src/corp.cpp index 497037cf06..aa7a241ec0 100644 --- a/protocols/ICQCorp/src/corp.cpp +++ b/protocols/ICQCorp/src/corp.cpp @@ -59,7 +59,7 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_PROTOC /////////////////////////////////////////////////////////////////////////////// -extern "C" __declspec(dllexport) int Load() +int CMPlugin::Load() { CMStringA szDescr(FORMAT, "%s connection", protoName); NETLIBUSER nlu = {}; @@ -74,7 +74,7 @@ extern "C" __declspec(dllexport) int Load() /////////////////////////////////////////////////////////////////////////////// -extern "C" __declspec(dllexport) int Unload() +int CMPlugin::Unload() { UnloadServices(); return 0; diff --git a/protocols/ICQCorp/src/stdafx.h b/protocols/ICQCorp/src/stdafx.h index 215bb0a9dc..f32175904f 100644 --- a/protocols/ICQCorp/src/stdafx.h +++ b/protocols/ICQCorp/src/stdafx.h @@ -60,4 +60,7 @@ extern int UnloadServices(); struct CMPlugin : public PLUGIN { CMPlugin(); + + int Load() override; + int Unload() override; }; -- cgit v1.2.3