From 1925d3521846f4e6683d3d537cc41de9c9bd7250 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 11 Feb 2014 19:01:03 +0000 Subject: "we don't need these variables" (c) Pink Floyd git-svn-id: http://svn.miranda-ng.org/main/trunk@8101 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SmileyAdd/src/services.cpp | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'plugins/SmileyAdd/src') diff --git a/plugins/SmileyAdd/src/services.cpp b/plugins/SmileyAdd/src/services.cpp index 84062d5de1..1c404a7c50 100644 --- a/plugins/SmileyAdd/src/services.cpp +++ b/plugins/SmileyAdd/src/services.cpp @@ -354,11 +354,9 @@ INT_PTR RegisterPack(WPARAM, LPARAM lParam) return TRUE; } -INT_PTR CustomCatMenu(WPARAM wParam, LPARAM lParam) +INT_PTR CustomCatMenu(WPARAM hContact, LPARAM lParam) { - const MCONTACT hContact = wParam; - if (lParam != 0) - { + if (lParam != 0) { SmileyCategoryType* smct = g_SmileyCategories.GetSmileyCategory((unsigned)lParam - 3); if (smct != NULL) opt.WriteContactCategory(hContact, smct->GetName()); @@ -538,16 +536,16 @@ int AccountListChanged(WPARAM wParam, LPARAM lParam) return 0; } -int DbSettingChanged(WPARAM wParam, LPARAM lParam) +int DbSettingChanged(WPARAM hContact, LPARAM lParam) { - MCONTACT hContact = wParam; - DBCONTACTWRITESETTING* cws = (DBCONTACTWRITESETTING*)lParam; + if (hContact == NULL) + return 0; - if (hContact == NULL) return 0; - if (cws->value.type == DBVT_DELETED) return 0; + DBCONTACTWRITESETTING* cws = (DBCONTACTWRITESETTING*)lParam; + if (cws->value.type == DBVT_DELETED) + return 0; - if (strcmp(cws->szSetting, "Transport") == 0) - { + if (strcmp(cws->szSetting, "Transport") == 0) { CMString catname(_T("Standard")); SmileyCategoryType *smc = g_SmileyCategories.GetSmileyCategory(catname); if (smc != NULL) -- cgit v1.2.3