summaryrefslogtreecommitdiff
path: root/plugins/Alarms
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-06-22 13:35:02 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-06-22 13:35:02 +0000
commitb3506557a58f53ed0fc3a96c4ec4a3b8098a542d (patch)
tree520a1cb861afa7600c0553ce8b2558f725a70ed1 /plugins/Alarms
parent4625aafb053a002f0223bfbe76abfbec629feacf (diff)
- CLISTMENUITEM::cbSize - atavism removed;
- code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@14325 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Alarms')
-rw-r--r--plugins/Alarms/src/frame.cpp4
-rw-r--r--plugins/Alarms/src/options.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Alarms/src/frame.cpp b/plugins/Alarms/src/frame.cpp
index 207d5ee626..e3ff863496 100644
--- a/plugins/Alarms/src/frame.cpp
+++ b/plugins/Alarms/src/frame.cpp
@@ -448,7 +448,7 @@ int ReloadFont(WPARAM, LPARAM)
void FixMainMenu()
{
- CLISTMENUITEM mi = { sizeof(mi) };
+ CLISTMENUITEM mi = { 0 };
if (!ServiceExists(MS_CLIST_FRAMES_ADDFRAME)) {
if (options.hide_with_clist || options.auto_showhide)
mi.flags = CMIM_FLAGS | CMIF_GRAYED;
@@ -548,7 +548,7 @@ int CreateFrame()
// create menu item
CreateServiceFunction(MODULE "/ShowHideReminders", ShowHideMenuFunc);
- CLISTMENUITEM mi = { sizeof(mi) };
+ CLISTMENUITEM mi = { 0 };
mi.flags = CMIM_ALL;
mi.hIcon = hIconMenuShowHide;
mi.pszName = LPGEN("Show reminders");
diff --git a/plugins/Alarms/src/options.cpp b/plugins/Alarms/src/options.cpp
index f5bcd72416..58106e397e 100644
--- a/plugins/Alarms/src/options.cpp
+++ b/plugins/Alarms/src/options.cpp
@@ -692,7 +692,7 @@ void AddMenuItem()
{
if (hMainMenuItem) return;
- CLISTMENUITEM mi = { sizeof(mi) };
+ CLISTMENUITEM mi = { 0 };
mi.flags = CMIM_ALL;
mi.icolibItem = IcoLib_GetIconHandle("alarms_menu_set");
mi.pszName = "Set alarm";