diff options
Diffstat (limited to 'plugins/PasteIt')
-rw-r--r-- | plugins/PasteIt/src/PasteIt.cpp | 4 | ||||
-rw-r--r-- | plugins/PasteIt/src/stdafx.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/plugins/PasteIt/src/PasteIt.cpp b/plugins/PasteIt/src/PasteIt.cpp index a56a46d15e..4e48b1aabf 100644 --- a/plugins/PasteIt/src/PasteIt.cpp +++ b/plugins/PasteIt/src/PasteIt.cpp @@ -346,7 +346,7 @@ static int ModulesLoaded(WPARAM, LPARAM) return 0;
}
-extern "C" int __declspec(dllexport) Load(void)
+int CMPlugin::Load()
{
g_plugin.registerIcon(LPGEN("Paste It"), iconList);
@@ -374,7 +374,7 @@ extern "C" int __declspec(dllexport) Load(void) /////////////////////////////////////////////////////////////////////////////////////////
-extern "C" int __declspec(dllexport) Unload(void)
+int CMPlugin::Unload()
{
UnhookEvent(hModulesLoaded);
UnhookEvent(hPrebuildContactMenu);
diff --git a/plugins/PasteIt/src/stdafx.h b/plugins/PasteIt/src/stdafx.h index 347e4e0dff..e747eb8f97 100644 --- a/plugins/PasteIt/src/stdafx.h +++ b/plugins/PasteIt/src/stdafx.h @@ -43,4 +43,7 @@ extern PasteToWeb* pasteToWebs[PasteToWeb::pages]; struct CMPlugin : public PLUGIN<CMPlugin>
{
CMPlugin();
+
+ int Load() override;
+ int Unload() override;
};
|