From 0b0d9f28696294beed32d5cdc3f5e93cd996f08e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 26 Mar 2018 13:46:31 +0300 Subject: code cleaning --- protocols/Gadu-Gadu/src/gg.cpp | 4 ++-- protocols/JabberG/src/jabber.cpp | 4 ++-- protocols/MRA/src/Mra.cpp | 5 +---- protocols/MSN/src/msn.cpp | 3 --- protocols/VKontakte/src/main.cpp | 4 ++-- 5 files changed, 7 insertions(+), 13 deletions(-) (limited to 'protocols') diff --git a/protocols/Gadu-Gadu/src/gg.cpp b/protocols/Gadu-Gadu/src/gg.cpp index bb7855c744..c46aee7c65 100644 --- a/protocols/Gadu-Gadu/src/gg.cpp +++ b/protocols/Gadu-Gadu/src/gg.cpp @@ -149,12 +149,12 @@ const wchar_t *http_error_string(int h) ////////////////////////////////////////////////////////// // Gets plugin info // -extern "C" __declspec(dllexport) PLUGININFOEX *MirandaPluginInfoEx(DWORD) +extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) { return &pluginInfo; } -extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = {MIID_PROTOCOL, MIID_LAST}; +extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_PROTOCOL, MIID_LAST }; ////////////////////////////////////////////////////////// // Cleanups from last plugin diff --git a/protocols/JabberG/src/jabber.cpp b/protocols/JabberG/src/jabber.cpp index fe30a49b98..ffeb046594 100755 --- a/protocols/JabberG/src/jabber.cpp +++ b/protocols/JabberG/src/jabber.cpp @@ -86,12 +86,12 @@ BOOL WINAPI DllMain(HINSTANCE hModule, DWORD, LPVOID) return TRUE; } -extern "C" __declspec(dllexport) PLUGININFOEX *MirandaPluginInfoEx(DWORD) +extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) { return &pluginInfo; } -extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = {MIID_PROTOCOL, MIID_LAST}; +extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_PROTOCOL, MIID_LAST }; /////////////////////////////////////////////////////////////////////////////// // OnModulesLoaded - execute some code when all plugins are initialized diff --git a/protocols/MRA/src/Mra.cpp b/protocols/MRA/src/Mra.cpp index 2e10d02fae..0c863e3c3a 100644 --- a/protocols/MRA/src/Mra.cpp +++ b/protocols/MRA/src/Mra.cpp @@ -36,15 +36,12 @@ BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID) g_hInstance = hInstance; DisableThreadLibraryCalls(hInstance); break; - case DLL_PROCESS_DETACH: - /* Nothink to do. */ - break; } return TRUE; } -extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = {MIID_PROTOCOL, MIID_LAST}; +extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_PROTOCOL, MIID_LAST }; extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) { diff --git a/protocols/MSN/src/msn.cpp b/protocols/MSN/src/msn.cpp index bc2cbfe464..697c1f6569 100644 --- a/protocols/MSN/src/msn.cpp +++ b/protocols/MSN/src/msn.cpp @@ -54,9 +54,6 @@ static const PLUGININFOEX pluginInfo = {0x97724af9, 0xf3fb, 0x47d3, {0xa3, 0xbf, 0xea, 0xa9, 0x35, 0xc7, 0x4e, 0x6d}} }; -int MSN_GCEventHook(WPARAM wParam, LPARAM lParam); -int MSN_GCMenuHook(WPARAM wParam, LPARAM lParam); - // Protocol instances static int sttCompareProtocols(const CMsnProto *p1, const CMsnProto *p2) { diff --git a/protocols/VKontakte/src/main.cpp b/protocols/VKontakte/src/main.cpp index 8f367d6c02..dd9687a554 100644 --- a/protocols/VKontakte/src/main.cpp +++ b/protocols/VKontakte/src/main.cpp @@ -44,12 +44,12 @@ BOOL WINAPI DllMain(HINSTANCE hModule, DWORD, LPVOID) return TRUE; } -extern "C" __declspec(dllexport) PLUGININFOEX *MirandaPluginInfoEx(DWORD) +extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) { return &pluginInfo; } -extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = {MIID_PROTOCOL, MIID_LAST}; +extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_PROTOCOL, MIID_LAST }; ///////////////////////////////////////////////////////////////////////////////////////// // OnLoad - initialize the plugin instance -- cgit v1.2.3