summaryrefslogtreecommitdiff
path: root/plugins/SmileyAdd
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-06-29 19:30:51 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-06-29 19:30:51 +0000
commitee3100701b64a1a34e8e5b3069219c7c5a201d8a (patch)
tree65ae99da9575d2611734482dcedec21bf7f186db /plugins/SmileyAdd
parentcadd3f86302d30d6d6a2e4af63a7a50f0dd1f1cb (diff)
- unified menu creation using wrapper class CMenuItem;
- duplicated hLangpack field removed from TMO_IntMenuItem; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@14440 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SmileyAdd')
-rw-r--r--plugins/SmileyAdd/src/main.cpp2
-rw-r--r--plugins/SmileyAdd/src/services.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/SmileyAdd/src/main.cpp b/plugins/SmileyAdd/src/main.cpp
index fdbd12442b..b375da5499 100644
--- a/plugins/SmileyAdd/src/main.cpp
+++ b/plugins/SmileyAdd/src/main.cpp
@@ -50,7 +50,7 @@ static IconItem icon = { LPGEN("Button smiley"), "SmileyAdd_ButtonSmiley", IDI_S
static int ModulesLoaded(WPARAM, LPARAM)
{
- TMO_MenuItem mi = { 0 };
+ CMenuItem mi;
mi.position = 2000070050;
mi.hIcolibItem = icon.hIcolib;
mi.name.a = LPGEN("Assign smiley category");
diff --git a/plugins/SmileyAdd/src/services.cpp b/plugins/SmileyAdd/src/services.cpp
index f557f55256..0822108f9b 100644
--- a/plugins/SmileyAdd/src/services.cpp
+++ b/plugins/SmileyAdd/src/services.cpp
@@ -292,10 +292,10 @@ int RebuildContactMenu(WPARAM wParam, LPARAM)
CMString cat;
opt.ReadContactCategory(wParam, cat);
- TMO_MenuItem mi = { 0 };
+ CMenuItem mi;
mi.root = hContactMenuItem;
- mi.flags = CMIF_TCHAR;
- mi.pszService = MS_SMILEYADD_CUSTOMCATMENU;
+ mi.flags = CMIF_TCHAR;
+ mi.pszService = MS_SMILEYADD_CUSTOMCATMENU;
bool nonecheck = true;
HGENMENU hMenu;