summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_chat.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-04-13 18:17:37 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-04-13 18:17:37 +0000
commitfcea54dc0f606c10807fd6b8344e43b547f10d53 (patch)
tree637a684afd747342ac7fe4f2dcd04d221d42081c /protocols/JabberG/src/jabber_chat.cpp
parente163beb2212fe4688f2c1f01d1d95747f9a9082d (diff)
minor code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@12793 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_chat.cpp')
-rw-r--r--protocols/JabberG/src/jabber_chat.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/protocols/JabberG/src/jabber_chat.cpp b/protocols/JabberG/src/jabber_chat.cpp
index bb7583fbd5..cf3aa9cb95 100644
--- a/protocols/JabberG/src/jabber_chat.cpp
+++ b/protocols/JabberG/src/jabber_chat.cpp
@@ -769,7 +769,7 @@ public:
{
if (!m_room) return;
- TCHAR *text = m_txtReason.GetText();
+ ptrT text(m_txtReason.GetText());
HWND hwndList = GetDlgItem(m_hwnd, IDC_CLIST);
// invite users from roster
@@ -788,10 +788,9 @@ public:
// invite others
for (int i = 0; i < m_newJids.getCount(); i++)
- if (SendMessage(hwndList, CLM_GETCHECKMARK, (WPARAM)m_newJids[i]->hItem, 0))
- InviteUser(m_newJids[i]->jid, text);
+ if (SendMessage(hwndList, CLM_GETCHECKMARK, (WPARAM)m_newJids[i]->hItem, 0))
+ InviteUser(m_newJids[i]->jid, text);
- mir_free(text);
Close();
}
};