summaryrefslogtreecommitdiff
path: root/plugins/SpellChecker/src/spellchecker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SpellChecker/src/spellchecker.cpp')
-rw-r--r--plugins/SpellChecker/src/spellchecker.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/plugins/SpellChecker/src/spellchecker.cpp b/plugins/SpellChecker/src/spellchecker.cpp
index 6473c8b719..13be3a9629 100644
--- a/plugins/SpellChecker/src/spellchecker.cpp
+++ b/plugins/SpellChecker/src/spellchecker.cpp
@@ -69,7 +69,7 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD miranda
return &pluginInfo;
}
-static int IconsChanged(WPARAM wParam, LPARAM lParam)
+static int IconsChanged(WPARAM, LPARAM)
{
StatusIconData sid = { sizeof(sid) };
sid.szModule = MODULE_NAME;
@@ -94,7 +94,7 @@ static int IconsChanged(WPARAM wParam, LPARAM lParam)
return 0;
}
-static int PreShutdown(WPARAM wParam, LPARAM lParam)
+static int PreShutdown(WPARAM, LPARAM)
{
mir_free(dictionariesFolder);
mir_free(customDictionariesFolder);
@@ -103,7 +103,7 @@ static int PreShutdown(WPARAM wParam, LPARAM lParam)
}
// Called when all the modules are loaded
-static int ModulesLoaded(WPARAM wParam, LPARAM lParam)
+static int ModulesLoaded(WPARAM, LPARAM)
{
variables_enabled = ServiceExists(MS_VARS_FORMATSTRING);
@@ -192,14 +192,10 @@ static int ModulesLoaded(WPARAM wParam, LPARAM lParam)
dict->load();
}
- HookEvent(ME_SKIN2_ICONSCHANGED, &IconsChanged);
- HookEvent(ME_MSG_WINDOWEVENT, &MsgWindowEvent);
- HookEvent(ME_MSG_WINDOWPOPUP, &MsgWindowPopup);
- HookEvent(ME_MSG_ICONPRESSED, &IconPressed);
-
- CreateServiceFunction(MS_SPELLCHECKER_ADD_RICHEDIT, AddContactTextBoxService);
- CreateServiceFunction(MS_SPELLCHECKER_REMOVE_RICHEDIT, RemoveContactTextBoxService);
- CreateServiceFunction(MS_SPELLCHECKER_SHOW_POPUP_MENU, ShowPopupMenuService);
+ HookEvent(ME_SKIN2_ICONSCHANGED, IconsChanged);
+ HookEvent(ME_MSG_WINDOWEVENT, MsgWindowEvent);
+ HookEvent(ME_MSG_WINDOWPOPUP, MsgWindowPopup);
+ HookEvent(ME_MSG_ICONPRESSED, IconPressed);
StatusIconData sid = { sizeof(sid) };
sid.szModule = MODULE_NAME;
@@ -250,6 +246,10 @@ extern "C" int __declspec(dllexport) Load(void)
HookEvent(ME_SYSTEM_MODULESLOADED, ModulesLoaded);
HookEvent(ME_SYSTEM_PRESHUTDOWN, PreShutdown);
+ CreateServiceFunction(MS_SPELLCHECKER_ADD_RICHEDIT, AddContactTextBoxService);
+ CreateServiceFunction(MS_SPELLCHECKER_REMOVE_RICHEDIT, RemoveContactTextBoxService);
+ CreateServiceFunction(MS_SPELLCHECKER_SHOW_POPUP_MENU, ShowPopupMenuService);
+
hCheckedBmp = LoadBitmap(NULL, MAKEINTRESOURCE(OBM_CHECK));
if (GetObject(hCheckedBmp, sizeof(bmpChecked), &bmpChecked) == 0)
bmpChecked.bmHeight = bmpChecked.bmWidth = 10;