From f4ea6188b62a2575f63a841fbc0aa8ccd52a0b2d Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 12 Dec 2014 16:49:19 +0000 Subject: TranslitSwitcher: changed warning lavel to w4 git-svn-id: http://svn.miranda-ng.org/main/trunk@11351 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TranslitSwitcher/TranslitSwitcher_12.vcxproj | 8 ++++---- plugins/TranslitSwitcher/src/Layoutproc.cpp | 4 ++-- plugins/TranslitSwitcher/src/TranslitSwitcher.cpp | 14 +++++++------- 3 files changed, 13 insertions(+), 13 deletions(-) (limited to 'plugins/TranslitSwitcher') diff --git a/plugins/TranslitSwitcher/TranslitSwitcher_12.vcxproj b/plugins/TranslitSwitcher/TranslitSwitcher_12.vcxproj index 13d67b6206..f51ccb6a07 100644 --- a/plugins/TranslitSwitcher/TranslitSwitcher_12.vcxproj +++ b/plugins/TranslitSwitcher/TranslitSwitcher_12.vcxproj @@ -81,7 +81,7 @@ true EnableFastChecks MultiThreadedDebugDLL - Level3 + Level4 EditAndContinue false Use @@ -107,7 +107,7 @@ _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) EnableFastChecks MultiThreadedDebugDLL - Level3 + Level4 false Use TranslitSwitcher.h @@ -135,7 +135,7 @@ false true Fast - Level3 + Level4 false Use TranslitSwitcher.h @@ -165,7 +165,7 @@ false true Fast - Level3 + Level4 false Use TranslitSwitcher.h diff --git a/plugins/TranslitSwitcher/src/Layoutproc.cpp b/plugins/TranslitSwitcher/src/Layoutproc.cpp index 75a1ca1a3f..6a7a918a1a 100644 --- a/plugins/TranslitSwitcher/src/Layoutproc.cpp +++ b/plugins/TranslitSwitcher/src/Layoutproc.cpp @@ -585,7 +585,7 @@ void InvertCase(bool lastword) GetClassName(hwnd2, szClassName, SIZEOF(szClassName)); if (mir_tstrcmpi(szClassName, _T("RichEdit50W")) != 0) return; - + DWORD dwStart, dwEnd, dwFlags = SF_TEXT | SF_UNICODE; SendMessage(hwnd2, EM_GETSEL, (WPARAM)&dwStart, (LPARAM)&dwEnd); bool somethingIsSelected = (dwStart != dwEnd); @@ -638,7 +638,7 @@ void InvertCase(bool lastword) mir_free(boo); } -int OnButtonPressed(WPARAM wParam, LPARAM lParam) +int OnButtonPressed(WPARAM, LPARAM lParam) { CustomButtonClickData *cbcd = (CustomButtonClickData *)lParam; diff --git a/plugins/TranslitSwitcher/src/TranslitSwitcher.cpp b/plugins/TranslitSwitcher/src/TranslitSwitcher.cpp index f4b9be16c6..4c4498dd90 100644 --- a/plugins/TranslitSwitcher/src/TranslitSwitcher.cpp +++ b/plugins/TranslitSwitcher/src/TranslitSwitcher.cpp @@ -44,40 +44,40 @@ static IconItem iconList[] = { LPGEN("Invert Case and Send"), "Invert Case and Send", IDI_INVERTSEND }, }; -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 &pluginInfoEx; } //------------------------------------------------------------------------------------------------------- #define MS_TS_SWITCHLAYOUT "TranslitSwitcher/SwitchLayout" -INT_PTR ServiceSwitch(WPARAM wParam, LPARAM lParam) +INT_PTR ServiceSwitch(WPARAM, LPARAM lParam) { SwitchLayout(lParam != 0); return 0; } #define MS_TS_TRANSLITLAYOUT "TranslitSwitcher/TranslitLayout" -INT_PTR ServiceTranslit(WPARAM wParam, LPARAM lParam) +INT_PTR ServiceTranslit(WPARAM, LPARAM lParam) { TranslitLayout(lParam != 0); return 0; } #define MS_TS_INVERTCASE "TranslitSwitcher/InvertCase" -INT_PTR ServiceInvert(WPARAM wParam, LPARAM lParam) +INT_PTR ServiceInvert(WPARAM, LPARAM lParam) { InvertCase(lParam != 0); return 0; } -int OnModulesLoaded(WPARAM wParam, LPARAM lParam) +int OnModulesLoaded(WPARAM, LPARAM) { HookEvent(ME_MSG_BUTTONPRESSED, OnButtonPressed); if (ServiceExists(MS_BB_ADDBUTTON)) { @@ -110,7 +110,7 @@ int OnModulesLoaded(WPARAM wParam, LPARAM lParam) return 0; } -int OnPreShutdown(WPARAM wParam, LPARAM lParam) +int OnPreShutdown(WPARAM, LPARAM) { if (ServiceExists(MS_BB_REMOVEBUTTON)) { BBButton bbd = { 0 }; -- cgit v1.2.3