diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-22 13:35:02 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-22 13:35:02 +0000 |
commit | b3506557a58f53ed0fc3a96c4ec4a3b8098a542d (patch) | |
tree | 520a1cb861afa7600c0553ce8b2558f725a70ed1 /plugins/Watrack | |
parent | 4625aafb053a002f0223bfbe76abfbec629feacf (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/Watrack')
-rw-r--r-- | plugins/Watrack/i_gui.inc | 3 | ||||
-rw-r--r-- | plugins/Watrack/lastfm/lastfm.pas | 4 | ||||
-rw-r--r-- | plugins/Watrack/myshows/myshows.pas | 4 | ||||
-rw-r--r-- | plugins/Watrack/popup/popups.pas | 3 | ||||
-rw-r--r-- | plugins/Watrack/proto/proto.pas | 3 | ||||
-rw-r--r-- | plugins/Watrack/stat/statlog.pas | 4 |
6 files changed, 0 insertions, 21 deletions
diff --git a/plugins/Watrack/i_gui.inc b/plugins/Watrack/i_gui.inc index 709584b066..40f6683522 100644 --- a/plugins/Watrack/i_gui.inc +++ b/plugins/Watrack/i_gui.inc @@ -34,7 +34,6 @@ var mi:TCListMenuItem;
begin
FillChar(mi, sizeof(mi), 0);
- mi.cbSize :=sizeof(mi);
mi.szPopupName.a:=PluginShort;
mi.hIcon :=IcoLib_GetIcon(IcoBtnEnable,0);
@@ -50,7 +49,6 @@ var p:PAnsiChar;
begin
FillChar(mi,sizeof(mi),0);
- mi.cbSize:=sizeof(mi);
mi.flags :=CMIM_NAME+CMIM_FLAGS+CMIM_ICON+f1;
if f1<>0 then
begin
@@ -88,7 +86,6 @@ var begin
result:=0;
FillChar(mi,SizeOf(mi),0);
- mi.cbSize:=sizeof(mi);
mi.flags :=CMIM_ICON;
mi.hIcon:=IcoLib_GetIcon(IcoBtnEnable,0);
diff --git a/plugins/Watrack/lastfm/lastfm.pas b/plugins/Watrack/lastfm/lastfm.pas index 8c552d4b1a..bc7d3bf727 100644 --- a/plugins/Watrack/lastfm/lastfm.pas +++ b/plugins/Watrack/lastfm/lastfm.pas @@ -114,7 +114,6 @@ begin exit
end;
FillChar(mi,sizeof(mi),0);
- mi.cbSize:=sizeof(mi);
mi.flags :=CMIM_FLAGS+flag;
CallService(MS_CLIST_MODIFYMENUITEM,hMenuLast,tlparam(@mi));
end;
@@ -142,7 +141,6 @@ var begin
result:=0;
FillChar(mi,SizeOf(mi),0);
- mi.cbSize:=sizeof(mi);
mi.flags :=CMIM_ICON;
mi.hIcon :=IcoLib_GetIcon(IcoLastFM,0);
CallService(MS_CLIST_MODIFYMENUITEM,hMenuLast,tlparam(@mi));
@@ -166,7 +164,6 @@ var mi:TCListMenuItem;
begin
FillChar(mi,sizeof(mi),0);
- mi.cbSize:=sizeof(mi);
mi.flags :=CMIM_NAME;
if odd(lfm_on) then
begin
@@ -204,7 +201,6 @@ begin DestroyIcon(sid.hDefaultIcon);
FillChar(mi, sizeof(mi), 0);
- mi.cbSize :=sizeof(mi);
mi.szPopupName.a:=PluginShort;
mi.hIcon :=IcoLib_GetIcon(IcoLastFM,0);
diff --git a/plugins/Watrack/myshows/myshows.pas b/plugins/Watrack/myshows/myshows.pas index 8749d91f2a..d70c7da8a3 100644 --- a/plugins/Watrack/myshows/myshows.pas +++ b/plugins/Watrack/myshows/myshows.pas @@ -143,7 +143,6 @@ begin exit
end;
FillChar(mi,sizeof(mi),0);
- mi.cbSize:=sizeof(mi);
mi.flags :=CMIM_FLAGS+flag;
CallService(MS_CLIST_MODIFYMENUITEM,hMenuMyShows,tlParam(@mi));
end;
@@ -171,7 +170,6 @@ var begin
result:=0;
FillChar(mi,SizeOf(mi),0);
- mi.cbSize:=sizeof(mi);
mi.flags :=CMIM_ICON;
mi.hIcon :=IcoLib_GetIcon(IcoMyShows,0);
CallService(MS_CLIST_MODIFYMENUITEM,hMenuMyShows,tlParam(@mi));
@@ -199,7 +197,6 @@ var mi:TCListMenuItem;
begin
FillChar(mi,sizeof(mi),0);
- mi.cbSize:=sizeof(mi);
mi.flags :=CMIM_NAME;
if odd(msh_on) then
begin
@@ -237,7 +234,6 @@ begin DestroyIcon(sid.hDefaultIcon);
FillChar(mi, sizeof(mi), 0);
- mi.cbSize :=sizeof(mi);
mi.szPopupName.a:=PluginShort;
mi.hIcon :=IcoLib_GetIcon(IcoMyShows,0);
diff --git a/plugins/Watrack/popup/popups.pas b/plugins/Watrack/popup/popups.pas index 4f896d0224..fe01254a62 100644 --- a/plugins/Watrack/popup/popups.pas +++ b/plugins/Watrack/popup/popups.pas @@ -334,7 +334,6 @@ begin exit
end;
FillChar(mi,sizeof(mi),0);
- mi.cbSize:=sizeof(mi);
mi.flags :=CMIM_FLAGS+flag;
CallService(MS_CLIST_MODIFYMENUITEM,hMenuInfo,tlparam(@mi));
end;
@@ -347,7 +346,6 @@ var begin
result:=0;
FillChar(mi,SizeOf(mi),0);
- mi.cbSize:=sizeof(mi);
mi.flags :=CMIM_ICON;
mi.hIcon :=IcoLib_GetIcon(IcoBtnInfo,0);
CallService(MS_CLIST_MODIFYMENUITEM,hMenuInfo,tlparam(@mi));
@@ -484,7 +482,6 @@ begin sic:=HookEvent(ME_SKIN2_ICONSCHANGED,@IconChanged);
FillChar(mi,SizeOf(mi),0);
- mi.cbSize :=SizeOf(mi);
mi.szPopupName.a:=PluginShort;
mi.hIcon :=IcoLib_GetIcon(IcoBtnInfo,0);
mi.szName.a :='Music Info';
diff --git a/plugins/Watrack/proto/proto.pas b/plugins/Watrack/proto/proto.pas index 625e4fa031..dffc70e380 100644 --- a/plugins/Watrack/proto/proto.pas +++ b/plugins/Watrack/proto/proto.pas @@ -303,7 +303,6 @@ var mi:TCListMenuItem;
begin
FillChar(mi,SizeOf(mi),0);
- mi.cbSize:=sizeof(mi);
if IsMirandaUser(hContact)<=0 then
mi.flags:=CMIF_NOTOFFLINE or CMIF_NOTOFFLIST or CMIM_FLAGS or CMIF_HIDDEN
else
@@ -330,7 +329,6 @@ var begin
result:=0;
FillChar(mi,SizeOf(mi),0);
- mi.cbSize:=sizeof(mi);
mi.flags :=CMIM_ICON;
mi.hIcon:=IcoLib_GetIcon(IcoBtnContext,0);
@@ -377,7 +375,6 @@ begin RegisterIcons;
FillChar(mi, sizeof(mi), 0);
- mi.cbSize :=sizeof(mi);
mi.szPopupName.a:=PluginShort;
mi.flags :=CMIF_NOTOFFLINE or CMIF_NOTOFFLIST;
mi.hIcon :=IcoLib_GetIcon(IcoBtnContext,0);
diff --git a/plugins/Watrack/stat/statlog.pas b/plugins/Watrack/stat/statlog.pas index 886a22057c..461b4c31bf 100644 --- a/plugins/Watrack/stat/statlog.pas +++ b/plugins/Watrack/stat/statlog.pas @@ -544,7 +544,6 @@ begin exit
end;
FillChar(mi,sizeof(mi),0);
- mi.cbSize:=sizeof(mi);
mi.flags :=CMIM_FLAGS+flag;
CallService(MS_CLIST_MODIFYMENUITEM,hMenuReport,tlparam(@mi));
end;
@@ -557,7 +556,6 @@ var begin
result:=0;
FillChar(mi,SizeOf(mi),0);
- mi.cbSize:=sizeof(mi);
mi.flags :=CMIM_ICON;
mi.hIcon :=IcoLib_GetIcon(IcoBtnReport,0);
CallService(MS_CLIST_MODIFYMENUITEM,hMenuReport,tlparam(@mi));
@@ -599,8 +597,6 @@ begin sic:=HookEvent(ME_SKIN2_ICONSCHANGED,@IconChanged);
FillChar(mi, sizeof(mi), 0);
- mi.cbSize :=sizeof(mi);
- mi.flags :=0;
mi.szPopupName.a:=PluginShort;
mi.hIcon :=IcoLib_GetIcon(IcoBtnReport,0);
mi.szName.a :='Create WATrack report';
|