summaryrefslogtreecommitdiff
path: root/plugins/Watrack/watrack.dpr
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/Watrack/watrack.dpr
parentc6b6e8a4b79e906f77b1f3be43e939316e1d912f (diff)
correct type for ServiceExists() - bool
Diffstat (limited to 'plugins/Watrack/watrack.dpr')
-rw-r--r--plugins/Watrack/watrack.dpr8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Watrack/watrack.dpr b/plugins/Watrack/watrack.dpr
index d766d53b06..c1c947704a 100644
--- a/plugins/Watrack/watrack.dpr
+++ b/plugins/Watrack/watrack.dpr
@@ -456,7 +456,7 @@ begin
end;
// TTB
- newstate:=ServiceExists(MS_TTB_ADDBUTTON)<>0;
+ newstate:=ServiceExists(MS_TTB_ADDBUTTON);
if newstate=(ttbState<>0) then
exit;
@@ -471,7 +471,7 @@ begin
end
else
begin
- if ServiceExists(MS_TTB_REMOVEBUTTON)>0 then
+ if ServiceExists(MS_TTB_REMOVEBUTTON) then
CallService(MS_TTB_REMOVEBUTTON,WPARAM(ttbState),0);
ttbState:=0;
end;
@@ -520,7 +520,7 @@ begin
CreateMenus;
- if ServiceExists(MS_TTB_ADDBUTTON)<>0 then
+ if ServiceExists(MS_TTB_ADDBUTTON) then
HookEvent(ME_TTB_MODULELOADED,@OnTTBLoaded)
else
ttbState:=0;
@@ -608,7 +608,7 @@ begin
if ttbState<>0 then
begin
- if ServiceExists(MS_TTB_REMOVEBUTTON)>0 then
+ if ServiceExists(MS_TTB_REMOVEBUTTON) then
CallService(MS_TTB_REMOVEBUTTON,TWPARAM(ttbState),0);
ttbState:=0;
end;