diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-28 15:20:06 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-28 15:20:06 +0000 |
commit | dcc561ccf83c7468bf512ab94db0c34bfdb49dfc (patch) | |
tree | b71f88f9be3198372f8e8cf11fa6c4093367a8dc /plugins/HistoryPlusPlus | |
parent | 7cd632b27e8bbae2005518606666547144c100dc (diff) |
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@14428 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/HistoryPlusPlus')
-rw-r--r-- | plugins/HistoryPlusPlus/historypp.dpr | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/plugins/HistoryPlusPlus/historypp.dpr b/plugins/HistoryPlusPlus/historypp.dpr index e147086564..844a9cef97 100644 --- a/plugins/HistoryPlusPlus/historypp.dpr +++ b/plugins/HistoryPlusPlus/historypp.dpr @@ -316,18 +316,13 @@ function OnTTBLoaded(awParam: WPARAM; alParam: LPARAM): Integer; cdecl; var
ttb: TTBButton;
begin
- if Boolean(ServiceExists(MS_TTB_ADDBUTTON)) then
- begin
- ZeroMemory(@ttb,SizeOf(ttb));
- ttb.cbSize := SizeOf(ttb);
- ttb.hIconUp := hppIcons[HPP_ICON_GLOBALSEARCH].handle;
- ttb.pszService := MS_HPP_SHOWGLOBALSEARCH;
- ttb.dwFlags := TTBBF_VISIBLE or TTBBF_SHOWTOOLTIP;
- ttb.name := 'Global History Search';
- ttb.pszTooltipUp := ttb.name;
- CallService(MS_TTB_ADDBUTTON,WPARAM(@ttb), 0);
- UnhookEvent(HookTTBLoaded);
- end;
+ ZeroMemory(@ttb,SizeOf(ttb));
+ ttb.hIconUp := hppIcons[HPP_ICON_GLOBALSEARCH].handle;
+ ttb.pszService := MS_HPP_SHOWGLOBALSEARCH;
+ ttb.dwFlags := TTBBF_VISIBLE or TTBBF_SHOWTOOLTIP;
+ ttb.name := 'Global History Search';
+ ttb.pszTooltipUp := ttb.name;
+ CallService(MS_TTB_ADDBUTTON,WPARAM(@ttb), 0);
Result := 0;
end;
|