summaryrefslogtreecommitdiff
path: root/include/m_genmenu.h
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 /include/m_genmenu.h
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 'include/m_genmenu.h')
-rw-r--r--include/m_genmenu.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/m_genmenu.h b/include/m_genmenu.h
index 20ca70b020..2ea11b239b 100644
--- a/include/m_genmenu.h
+++ b/include/m_genmenu.h
@@ -50,6 +50,17 @@ struct TMO_MenuItem
int hLangpack;
};
+#ifdef __cplusplus
+struct CMenuItem : public TMO_MenuItem
+{
+ CMenuItem()
+ {
+ memset(this, 0, sizeof(CMenuItem));
+ this->hLangpack = ::hLangpack;
+ }
+};
+#endif
+
/*
This structure passed to CheckService.
*/