summaryrefslogtreecommitdiff
path: root/plugins/TipperYM/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-05-09 18:45:30 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-05-10 19:46:05 +0300
commit50c2fbbb1f7f6f233c980d7e4a52151fb72820f7 (patch)
tree349bc156e11357e68e2814778e7e4287eae43b3b /plugins/TipperYM/src
parent0943ae89e869ded753e5fbc5b64dca458a8f31b8 (diff)
suddenly: tipper services were used as string constants
(cherry picked from commit 15fcbbc128178ea5a4cdb1a58927a43ea740be88)
Diffstat (limited to 'plugins/TipperYM/src')
-rw-r--r--plugins/TipperYM/src/options.h2
-rw-r--r--plugins/TipperYM/src/tipper.cpp6
2 files changed, 3 insertions, 5 deletions
diff --git a/plugins/TipperYM/src/options.h b/plugins/TipperYM/src/options.h
index b95cf7c533..deccb7dd50 100644
--- a/plugins/TipperYM/src/options.h
+++ b/plugins/TipperYM/src/options.h
@@ -31,8 +31,6 @@ Boston, MA 02111-1307, USA.
#define IDPRESETITEM 1000
-#define MS_TOOLTIP_SHOWTIP "mToolTip/ShowTip"
-
struct OPTBUTTON
{
UINT id, uintCoreIconId, uintResIconId;
diff --git a/plugins/TipperYM/src/tipper.cpp b/plugins/TipperYM/src/tipper.cpp
index eb81f2f938..4c67fbe5c3 100644
--- a/plugins/TipperYM/src/tipper.cpp
+++ b/plugins/TipperYM/src/tipper.cpp
@@ -303,9 +303,9 @@ int CMPlugin::Load()
InitMessagePump();
// for compatibility with mToolTip status tooltips
- CreateServiceFunction("mToolTip/ShowTip", ShowTip);
- CreateServiceFunction("mToolTip/ShowTipW", ShowTipW);
- CreateServiceFunction("mToolTip/HideTip", HideTip);
+ CreateServiceFunction(MS_TIPPER_SHOWTIP, ShowTip);
+ CreateServiceFunction(MS_TIPPER_SHOWTIPW, ShowTipW);
+ CreateServiceFunction(MS_TIPPER_HIDETIP, HideTip);
CreateServiceFunction("mToolTip/ReloadSkin", ReloadSkin);
HookEvent(ME_DB_CONTACT_SETTINGCHANGED, SettingChanged);