summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/chat/manager.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-08-03 21:56:17 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-08-03 21:56:17 +0000
commitfc3091cb598ad8401fb4af2a6e3931141c9895a1 (patch)
treecdbf34b27d1ff8d5986f687a9c51e93a0099bf55 /plugins/TabSRMM/src/chat/manager.cpp
parent98ad0478550773f19712b598edc56ef7dbea2985 (diff)
- old junk removed from tabSRMM & replaced with the modern calls
- code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@5572 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/chat/manager.cpp')
-rw-r--r--plugins/TabSRMM/src/chat/manager.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/TabSRMM/src/chat/manager.cpp b/plugins/TabSRMM/src/chat/manager.cpp
index dc4b8d118b..86aed75e95 100644
--- a/plugins/TabSRMM/src/chat/manager.cpp
+++ b/plugins/TabSRMM/src/chat/manager.cpp
@@ -39,8 +39,8 @@ void SetActiveSession(const TCHAR* pszID, const char* pszModule)
void SetActiveSessionEx(SESSION_INFO *si)
{
if (si) {
- replaceStr(&pszActiveWndID, si->ptszID);
- replaceStrA(&pszActiveWndModule, si->pszModule);
+ replaceStrT(pszActiveWndID, si->ptszID);
+ replaceStr(pszActiveWndModule, si->pszModule);
}
}
@@ -569,7 +569,7 @@ BOOL SM_ChangeUID(const TCHAR* pszID, const char* pszModule, const TCHAR* pszUID
if ((!pszID || !lstrcmpi(si->ptszID, pszID)) && !lstrcmpiA(si->pszModule, pszModule)) {
USERINFO* ui = UM_FindUser(si->pUsers, pszUID);
if (ui)
- replaceStr(&ui->pszUID, pszNewUID);
+ replaceStrT(ui->pszUID, pszNewUID);
if (pszID)
return TRUE;
@@ -588,7 +588,7 @@ BOOL SM_ChangeNick(const TCHAR* pszID, const char* pszModule, GCEVENT *gce)
if ((!pszID || !lstrcmpi(si->ptszID, pszID)) && !lstrcmpiA(si->pszModule, pszModule)) {
USERINFO* ui = UM_FindUser(si->pUsers, gce->ptszUID);
if (ui) {
- replaceStr(&ui->pszNick, gce->ptszText);
+ replaceStrT(ui->pszNick, gce->ptszText);
SM_MoveUser(si->ptszID, si->pszModule, ui->pszUID);
if (si->hWnd) {
SendMessage(si->hWnd, GC_UPDATENICKLIST, 0, 0);
@@ -910,7 +910,7 @@ STATUSINFO * TM_AddStatus(STATUSINFO** ppStatusList, const TCHAR* pszStatus, int
if (!TM_FindStatus(*ppStatusList, pszStatus)) {
STATUSINFO *node = (STATUSINFO*) mir_alloc(sizeof(STATUSINFO));
ZeroMemory(node, sizeof(STATUSINFO));
- replaceStr(&node->pszGroup, pszStatus);
+ replaceStrT(node->pszGroup, pszStatus);
node->hIcon = (HICON)(*iCount);
while ((int)node->hIcon > STATUSICONCOUNT - 1)
node->hIcon--;
@@ -1122,7 +1122,7 @@ USERINFO* UM_AddUser(STATUSINFO* pStatusList, USERINFO** ppUserList, const TCHAR
{
USERINFO *node = (USERINFO*) mir_alloc(sizeof(USERINFO));
ZeroMemory(node, sizeof(USERINFO));
- replaceStr(&node->pszUID, pszUID);
+ replaceStrT(node->pszUID, pszUID);
if (*ppUserList == NULL) { // list is empty
*ppUserList = node;