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 --- plugins/FTPFileYM/src/ftpfile.cpp | 9 +-------- plugins/FTPFileYM/src/stdafx.h | 2 ++ 2 files changed, 3 insertions(+), 8 deletions(-) (limited to 'plugins/FTPFileYM/src') diff --git a/plugins/FTPFileYM/src/ftpfile.cpp b/plugins/FTPFileYM/src/ftpfile.cpp index c687584cc7..16a76bc66e 100644 --- a/plugins/FTPFileYM/src/ftpfile.cpp +++ b/plugins/FTPFileYM/src/ftpfile.cpp @@ -372,7 +372,7 @@ static int Shutdown(WPARAM, LPARAM) return 0; } -extern "C" int __declspec(dllexport) Load(void) +int CMPlugin::Load() { #ifdef _DEBUG _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); @@ -397,10 +397,3 @@ extern "C" int __declspec(dllexport) Load(void) ftpList.init(); return 0; } - -///////////////////////////////////////////////////////////////////////////////////////// - -extern "C" int __declspec(dllexport) Unload(void) -{ - return 0; -} diff --git a/plugins/FTPFileYM/src/stdafx.h b/plugins/FTPFileYM/src/stdafx.h index 8bcb15e909..9f1a9c41a7 100644 --- a/plugins/FTPFileYM/src/stdafx.h +++ b/plugins/FTPFileYM/src/stdafx.h @@ -84,4 +84,6 @@ using namespace std; struct CMPlugin : public PLUGIN { CMPlugin(); + + int Load() override; }; -- cgit v1.2.3