diff options
author | George Hazan <george.hazan@gmail.com> | 2015-08-11 15:39:23 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-08-11 15:39:23 +0000 |
commit | 2548065ebc5da2a8778cd4f49343b847773ee174 (patch) | |
tree | 642d6b05a1ada0df9803ddf55faa3e709920afef /plugins/Rate | |
parent | eb031473db62a4fac910f7cb2d13765a753df92d (diff) |
'unreferenced formal parameter' warnings fixed
git-svn-id: http://svn.miranda-ng.org/main/trunk@14913 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Rate')
-rw-r--r-- | plugins/Rate/src/main.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/plugins/Rate/src/main.cpp b/plugins/Rate/src/main.cpp index e8772dbcc0..d4e34a913e 100644 --- a/plugins/Rate/src/main.cpp +++ b/plugins/Rate/src/main.cpp @@ -55,14 +55,14 @@ PLUGININFOEX pluginInfo={ {0x45230488, 0x977b, 0x405b, {0x85, 0x6d, 0xea, 0x27, 0x6d, 0x70, 0x83, 0xb7}}
};
-BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID)
{
g_hInst = hinstDLL;
return TRUE;
}
// плагининфо
-extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
+extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD)
{
return &pluginInfo;
}
@@ -78,10 +78,10 @@ static void setExtraIcon(MCONTACT hContact, int bRate = -1, BOOL clear = TRUE) bRate = db_get_b(hContact, "CList", "Rate", 0);
const char *icon = NULL;
- switch(bRate) {
- case 1: icon = "rate_low"; break;
- case 2: icon = "rate_medium"; break;
- case 3: icon = "rate_high"; break;
+ switch (bRate) {
+ case 1: icon = "rate_low"; break;
+ case 2: icon = "rate_medium"; break;
+ case 3: icon = "rate_high"; break;
}
if (icon != NULL || clear)
@@ -97,7 +97,7 @@ static IconItem iconList[] = { LPGEN("Rate low"), "rate_low", IDI_RATELO },
};
-int onModulesLoaded(WPARAM wParam,LPARAM lParam)
+int onModulesLoaded(WPARAM, LPARAM)
{
// Set initial value for all contacts
for (MCONTACT hContact = db_find_first(); hContact; hContact = db_find_next(hContact))
@@ -106,11 +106,11 @@ int onModulesLoaded(WPARAM wParam,LPARAM lParam) return 0;
}
-int onContactSettingChanged(WPARAM hContact,LPARAM lParam)
+int onContactSettingChanged(WPARAM hContact, LPARAM lParam)
{
- DBCONTACTWRITESETTING *cws=(DBCONTACTWRITESETTING*)lParam;
+ DBCONTACTWRITESETTING *cws = (DBCONTACTWRITESETTING*)lParam;
- if (hContact != NULL && !mir_strcmp(cws->szModule,"CList") && !mir_strcmp(cws->szSetting,"Rate"))
+ if (hContact != NULL && !mir_strcmp(cws->szModule, "CList") && !mir_strcmp(cws->szSetting, "Rate"))
setExtraIcon(hContact, cws->value.type == DBVT_DELETED ? 0 : cws->value.bVal);
return 0;
@@ -128,10 +128,10 @@ extern "C" int __declspec(dllexport) Load(void) // Extra icon support
hExtraIcon = ExtraIcon_RegisterIcolib("contact_rate", LPGEN("Contact rate"), "rate_high");
- return 0;
+ return 0;
}
extern "C" int __declspec(dllexport) Unload(void)
{
- return 0;
+ return 0;
}
|