summaryrefslogtreecommitdiff
path: root/plugins/QuickSearch/sr_window.pas
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2016-11-27 21:02:54 +0300
committerGeorge Hazan <ghazan@miranda.im>2016-11-27 21:02:54 +0300
commit0ebb1294ecaf4d62ad6b3e911be6275248c05354 (patch)
tree5560ce9ecc74ab5357279cd15aa9704d4d9d8c30 /plugins/QuickSearch/sr_window.pas
parentc6b6e8a4b79e906f77b1f3be43e939316e1d912f (diff)
correct type for ServiceExists() - bool
Diffstat (limited to 'plugins/QuickSearch/sr_window.pas')
-rw-r--r--plugins/QuickSearch/sr_window.pas12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/QuickSearch/sr_window.pas b/plugins/QuickSearch/sr_window.pas
index bdefa5f51b..e1d44f8e11 100644
--- a/plugins/QuickSearch/sr_window.pas
+++ b/plugins/QuickSearch/sr_window.pas
@@ -359,7 +359,7 @@ end;
procedure DeleteOneContact(hContact:TMCONTACT);
begin
- if ServiceExists(strCListDel)>0 then
+ if ServiceExists(strCListDel) then
CallService(strCListDel,hContact,0)
else
db_delete_contact(hContact);
@@ -899,7 +899,7 @@ begin
AppendMenuW(mmenu,MF_SEPARATOR,0,nil);
AppendMenuW(mmenu,MF_STRING,101,TranslateW('&Delete'));
AppendMenuW(mmenu,MF_STRING,102,TranslateW('&Copy'));
- if ServiceExists(MS_MC_CONVERTTOMETA)<>0 then
+ if ServiceExists(MS_MC_CONVERTTOMETA) then
AppendMenuW(mmenu,MF_STRING,103,TranslateW('C&onvert to Meta'));
cntmenu:=MakeContainerMenu(300);
@@ -1485,7 +1485,7 @@ begin
if j>0 then
begin
StrCopy(StrCopyE(buf,GetProtoName(FlagBuf[i].proto)),PS_GETCUSTOMSTATUSICON);
- if ServiceExists(buf)<>0 then
+ if ServiceExists(buf) then
begin
h:=CallService(buf,j,LR_SHARED);
@@ -1508,7 +1508,7 @@ begin
MirVerW:=MainBuf[lplvcd^.nmcd.lItemlParam,sub].text;
//!!
- if (MirVerW<>nil) and (MirVerW[0]<>#0) and (ServiceExists(MS_FP_GETCLIENTICONW)<>0) then
+ if (MirVerW<>nil) and (MirVerW[0]<>#0) and ServiceExists(MS_FP_GETCLIENTICONW) then
begin
h:=CallService(MS_FP_GETCLIENTICONW,tlparam(MirVerW),0);
ListView_GetSubItemRect(grid,lplvcd^.nmcd.dwItemSpec,lplvcd^.iSubItem,LVIR_ICON,@rc);
@@ -1622,7 +1622,7 @@ begin
else if (datatype=QSTS_STRING) and
(StrCmp(setting,'MirVer')=0) and
- (ServiceExists(MS_FP_GETCLIENTICONW)<>0) then
+ ServiceExists(MS_FP_GETCLIENTICONW) then
flags:=flags or COL_CLIENT;
end
@@ -2258,7 +2258,7 @@ begin
if j=0 then
exit;
- TTInstalled := ServiceExists(MS_TIPPER_SHOWTIP)<>0;
+ TTInstalled := ServiceExists(MS_TIPPER_SHOWTIP);
// too lazy to move pattern and flags to thread
if apattern<>nil then
begin