From ca55ac7905e8ffd1ee979b5b5fe7121fa7a03a5d Mon Sep 17 00:00:00 2001
From: George Hazan <ghazan@miranda.im>
Date: Mon, 28 May 2018 22:38:35 +0300
Subject: all plugins => CMPlugin virtual functions

---
 plugins/Cln_skinedit/src/main.cpp | 9 +--------
 plugins/Cln_skinedit/src/stdafx.h | 2 ++
 2 files changed, 3 insertions(+), 8 deletions(-)

(limited to 'plugins/Cln_skinedit')

diff --git a/plugins/Cln_skinedit/src/main.cpp b/plugins/Cln_skinedit/src/main.cpp
index f6b8c85497..8c95c929ff 100644
--- a/plugins/Cln_skinedit/src/main.cpp
+++ b/plugins/Cln_skinedit/src/main.cpp
@@ -893,16 +893,9 @@ static INT_PTR SkinEdit_Invoke(WPARAM, LPARAM lParam)
 	return (INT_PTR)psd->hwndSkinEdit;
 }
 
-extern "C" int __declspec(dllexport) Load(void)
+int CMPlugin::Load()
 {
 	CreateServiceFunction(MS_CLNSE_INVOKE, SkinEdit_Invoke);
 	CreateServiceFunction(MS_CLNSE_FILLBYCURRENTSEL, SkinEdit_FillByCurrentSel);
 	return 0;
 }
-
-/////////////////////////////////////////////////////////////////////////////////////////
-
-extern "C" int __declspec(dllexport) Unload(void)
-{
-	return 0;
-}
diff --git a/plugins/Cln_skinedit/src/stdafx.h b/plugins/Cln_skinedit/src/stdafx.h
index 5f96c2f53a..d64d5cae3a 100644
--- a/plugins/Cln_skinedit/src/stdafx.h
+++ b/plugins/Cln_skinedit/src/stdafx.h
@@ -40,4 +40,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 struct CMPlugin : public PLUGIN<CMPlugin>
 {
 	CMPlugin();
+
+	int Load() override;
 };
-- 
cgit v1.2.3