diff options
author | George Hazan <george.hazan@gmail.com> | 2014-12-14 10:14:51 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-12-14 10:14:51 +0000 |
commit | 09934120a7e3b080f5f79f26da3b3bc2946753ee (patch) | |
tree | 4bdf7b757c5e218a03ef43be51dbd8adf7de4639 /protocols/JabberG/src/jabber_opt.cpp | |
parent | cb56b3c8913ff8ea50a92a6b74e0342d6377a235 (diff) |
Jabber: warning level 4
git-svn-id: http://svn.miranda-ng.org/main/trunk@11395 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_opt.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_opt.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/protocols/JabberG/src/jabber_opt.cpp b/protocols/JabberG/src/jabber_opt.cpp index ec1062bc46..e2ac914ba5 100644 --- a/protocols/JabberG/src/jabber_opt.cpp +++ b/protocols/JabberG/src/jabber_opt.cpp @@ -332,15 +332,7 @@ CCtrlEditJid::CCtrlEditJid(CDlgBase* dlg, int ctrlId): static void sttStoreJidFromUI(CJabberProto *ppro, CCtrlEdit &txtUsername, CCtrlCombo &cbServer)
{
- TCHAR *user = txtUsername.GetText();
- TCHAR *server = cbServer.GetText();
- int len = mir_tstrlen(user) + mir_tstrlen(server) + 2;
- TCHAR *jid = (TCHAR *)mir_alloc(len * sizeof(TCHAR));
- mir_sntprintf(jid, len, _T("%s@%s"), user, server);
- ppro->setTString("jid", jid);
- mir_free(jid);
- mir_free(server);
- mir_free(user);
+ ppro->setTString("jid", CMString(FORMAT, _T("%s@%s"), ptrT(txtUsername.GetText()), ptrT(cbServer.GetText())));
}
class CDlgOptAccount: public CJabberDlgBase
|