diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2015-07-28 06:14:40 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2015-07-28 06:14:40 +0000 |
commit | d837d2e99fbe9444c44e9893b31a4465b2235cb3 (patch) | |
tree | 0dc30fa549f588ed3052a417f0af5d5b8e5358b4 /plugins/RemovePersonalSettings | |
parent | 1ab85ee9ff6103c66ac9e7847aead3992ca66921 (diff) |
defines moved to header, warnings fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@14742 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/RemovePersonalSettings')
-rw-r--r-- | plugins/RemovePersonalSettings/src/rps.cpp | 25 | ||||
-rw-r--r-- | plugins/RemovePersonalSettings/src/stdafx.h | 16 |
2 files changed, 20 insertions, 21 deletions
diff --git a/plugins/RemovePersonalSettings/src/rps.cpp b/plugins/RemovePersonalSettings/src/rps.cpp index 0ba20663f7..b24b089bb1 100644 --- a/plugins/RemovePersonalSettings/src/rps.cpp +++ b/plugins/RemovePersonalSettings/src/rps.cpp @@ -28,22 +28,6 @@ Based on work by nullbie #include "stdafx.h"
-#define MIID_REMOVEPERSONALSETTINGS { 0x5eaec989, 0x8ff, 0x4820, { 0xb8, 0x6c, 0x2b, 0x6e, 0xf0, 0x8e, 0x33, 0x73 } }
-
-#define INI_FILE_NAME "RemovePersonalSettings.ini"
-
-#define PLUGINDISABLELIST "PluginDisable"
-
-#define METACONTACTS_PROTOCOL_NAME "MetaContacts"
-
-#define NOTICE_TEXT LPGEN("All your personal settings will be erased!\n\
-Make sure you are running this from a copy of your profile (and not over the original one).\n\
-Running this will erase files/folders under Miranda main folder.\n\n\
-Are you sure you want to remove all your personal settings?\n\n\
-(You cannot say that I don't told you about the risks :P)")
-
-#define MSGBOX_TITLE LPGEN("Remove Personal Settings")
-
HINSTANCE hInst;
char gIniFile[MAX_PATH];
char gMirandaDir[MAX_PATH];
@@ -87,14 +71,14 @@ BOOL isMetaContact(MCONTACT hContact); -BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD ,LPVOID )
{
hInst=hinstDLL;
return TRUE;
}
-extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
+extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD)
{
return &pluginInfo;
}
@@ -156,7 +140,7 @@ extern "C" int __declspec(dllexport) Unload(void) }
-INT_PTR RemoveAllService(WPARAM wParam,LPARAM lParam)
+INT_PTR RemoveAllService(WPARAM, LPARAM)
{
if (gIniFile[0] == '\0') {
MessageBox(NULL, TranslateT("Configuration file could not be found!"), TranslateT(MSGBOX_TITLE), MB_OK | MB_ICONERROR);
@@ -226,7 +210,6 @@ void RemoveUsers() MEVENT hDbEvent = db_event_first(0);
while(hDbEvent != NULL) {
- int ret = db_event_delete(0, hDbEvent);
hDbEvent = db_event_first(0);
}
@@ -627,7 +610,7 @@ int EnumProc(const char *szName, LPARAM lParam) return 0;
}
-int ModuleEnumProc(const char *szName, DWORD ofsModuleName, LPARAM lParam)
+int ModuleEnumProc(const char *szName, DWORD, LPARAM lParam)
{
return EnumProc(szName, lParam);
}
diff --git a/plugins/RemovePersonalSettings/src/stdafx.h b/plugins/RemovePersonalSettings/src/stdafx.h index 0756e17fc5..ed36365f1d 100644 --- a/plugins/RemovePersonalSettings/src/stdafx.h +++ b/plugins/RemovePersonalSettings/src/stdafx.h @@ -30,3 +30,19 @@ #include <m_database.h>
#include "version.h"
+
+#define MIID_REMOVEPERSONALSETTINGS { 0x5eaec989, 0x8ff, 0x4820, { 0xb8, 0x6c, 0x2b, 0x6e, 0xf0, 0x8e, 0x33, 0x73 } }
+
+#define INI_FILE_NAME "RemovePersonalSettings.ini"
+
+#define PLUGINDISABLELIST "PluginDisable"
+
+#define METACONTACTS_PROTOCOL_NAME "MetaContacts"
+
+#define NOTICE_TEXT LPGEN("All your personal settings will be erased!\n\
+Make sure you are running this from a copy of your profile (and not over the original one).\n\
+Running this will erase files/folders under Miranda main folder.\n\n\
+Are you sure you want to remove all your personal settings?\n\n\
+(You cannot say that I don't told you about the risks :P)")
+
+#define MSGBOX_TITLE LPGEN("Remove Personal Settings")
|