From dcc561ccf83c7468bf512ab94db0c34bfdb49dfc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 28 Jun 2015 15:20:06 +0000 Subject: code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@14428 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/HistoryPlusPlus/historypp.dpr | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'plugins/HistoryPlusPlus') 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; -- cgit v1.2.3