summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/modplus.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-01-25 21:39:23 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-01-25 21:39:23 +0000
commitb6b84ffaf51673a3b9b2851602428ac815b680c4 (patch)
tree51733a10acfde433c5f3a15b573bfc865ee42d5a /plugins/TabSRMM/src/modplus.cpp
parent619f8bc3cf5e9f4aac984b8f855b74293fbb787d (diff)
TabSRMM:
- Fixed memory issues - Fixed translation issue (fixes #869) git-svn-id: http://svn.miranda-ng.org/main/trunk@11909 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/modplus.cpp')
-rw-r--r--plugins/TabSRMM/src/modplus.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/TabSRMM/src/modplus.cpp b/plugins/TabSRMM/src/modplus.cpp
index 79d775501c..42dca25d9d 100644
--- a/plugins/TabSRMM/src/modplus.cpp
+++ b/plugins/TabSRMM/src/modplus.cpp
@@ -58,8 +58,8 @@ static int RegisterCustomButton(WPARAM, LPARAM)
bbd.dwButtonID = 1;
bbd.dwDefPos = 200;
bbd.hIcon = PluginConfig.g_buttonBarIconHandles[3];
- bbd.pszModuleName = (char*)"Tabmodplus";
- bbd.ptszTooltip = TranslateT("Insert [img] tag / surround selected text with [img][/img]");
+ bbd.pszModuleName = "Tabmodplus";
+ bbd.ptszTooltip = LPGENT("Insert [img] tag / surround selected text with [img][/img]");
return CallService(MS_BB_ADDBUTTON, 0, (LPARAM)&bbd);
}
@@ -71,7 +71,7 @@ static int CustomButtonPressed(WPARAM wParam, LPARAM lParam)
BBButton bbd = { sizeof(bbd) };
bbd.dwButtonID = 1;
- bbd.pszModuleName = (char *)"Tabmodplus";
+ bbd.pszModuleName = "Tabmodplus";
CallService(MS_BB_GETBUTTONSTATE, wParam, (LPARAM)&bbd);
TCHAR *pszText = _T("");
@@ -139,14 +139,14 @@ static int CustomButtonPressed(WPARAM wParam, LPARAM lParam)
case 3:
pszFormatedText = _T("[img]");
- bbd.ptszTooltip = TranslateT("Insert [img] tag / surround selected text with [img][/img]");
+ bbd.ptszTooltip = LPGENT("Insert [img] tag / surround selected text with [img][/img]");
CallService(MS_BB_SETBUTTONSTATE, wParam, (LPARAM)&bbd);
break;
case 4:
pszFormatedText = _T("[/img]");
- bbd.ptszTooltip = TranslateT("Insert [img] tag / surround selected text with [img][/img]");
+ bbd.ptszTooltip = LPGENT("Insert [img] tag / surround selected text with [img][/img]");
CallService(MS_BB_SETBUTTONSTATE, wParam, (LPARAM)&bbd);
break;
}
@@ -162,7 +162,7 @@ static int CustomButtonPressed(WPARAM wParam, LPARAM lParam)
return 1;
}
-int ModPlus_Init(WPARAM, LPARAM)
+int ModPlus_Init()
{
HookEvent(ME_MSG_BUTTONPRESSED, CustomButtonPressed);
HookEvent(ME_MSG_TOOLBARLOADED, RegisterCustomButton);