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/IRCG/src/ircproto.h | 3 +++ protocols/IRCG/src/main.cpp | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'protocols/IRCG/src') diff --git a/protocols/IRCG/src/ircproto.h b/protocols/IRCG/src/ircproto.h index bc7c19d6b7..473ec06359 100644 --- a/protocols/IRCG/src/ircproto.h +++ b/protocols/IRCG/src/ircproto.h @@ -421,6 +421,9 @@ private: struct CMPlugin : public ACCPROTOPLUGIN { CMPlugin(); + + int Load() override; + int Unload() override; }; #endif // _IRCPROTO_H_ diff --git a/protocols/IRCG/src/main.cpp b/protocols/IRCG/src/main.cpp index 086cb11dd3..e6061eb2bf 100644 --- a/protocols/IRCG/src/main.cpp +++ b/protocols/IRCG/src/main.cpp @@ -64,7 +64,7 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_PROTOC ///////////////////////////////////////////////////////////////////////////////////////// -extern "C" int __declspec(dllexport) Load() +int CMPlugin::Load() { InitIcons(); InitServers(); @@ -74,7 +74,7 @@ extern "C" int __declspec(dllexport) Load() ///////////////////////////////////////////////////////////////////////////////////////// -extern "C" int __declspec(dllexport) Unload(void) +int CMPlugin::Unload() { UninitContactMenus(); UninitTimers(); -- cgit v1.2.3