diff options
author | George Hazan <george.hazan@gmail.com> | 2013-09-21 13:40:52 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-09-21 13:40:52 +0000 |
commit | c69a9c892f52056d452ad8520e6c09b6956f30e3 (patch) | |
tree | cf26cee03ae18c38486515e94ec18068b38cbd41 /protocols/JabberG/src/jabber_util.cpp | |
parent | 8b6824e3ec3ed7340db33bcbe592321b6afb0a00 (diff) |
smart pointers for Jabber resources
git-svn-id: http://svn.miranda-ng.org/main/trunk@6155 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_util.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_util.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/JabberG/src/jabber_util.cpp b/protocols/JabberG/src/jabber_util.cpp index 2d2102e6ba..2f4229dba2 100644 --- a/protocols/JabberG/src/jabber_util.cpp +++ b/protocols/JabberG/src/jabber_util.cpp @@ -148,7 +148,7 @@ TCHAR* __stdcall JabberNickFromJID(const TCHAR *jid) return nick;
}
-JABBER_RESOURCE_STATUS* CJabberProto::ResourceInfoFromJID(const TCHAR *jid)
+pResourceStatus CJabberProto::ResourceInfoFromJID(const TCHAR *jid)
{
if ( !jid)
return NULL;
@@ -908,7 +908,7 @@ TCHAR* CJabberProto::GetClientJID(const TCHAR *jid, TCHAR *dest, size_t destLen) }
if (p == NULL) {
- JABBER_RESOURCE_STATUS *r = LI->getBestResource();
+ pResourceStatus r( LI->getBestResource());
if (r != NULL)
mir_sntprintf(dest, destLen, _T("%s/%s"), jid, r->resourceName);
}
|