summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_xstatus.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-06-20 13:55:58 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-06-20 13:55:58 +0000
commit04f4e2acfbc82946ca3def654214c08071a87359 (patch)
tree871e1f476ed5086e8ebbd7e182ea2a89707cc249 /protocols/JabberG/src/jabber_xstatus.cpp
parent24cbc87262dc8856741db8e9f8388c18b16583ad (diff)
xml api became a set of functions
git-svn-id: http://svn.miranda-ng.org/main/trunk@14288 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_xstatus.cpp')
-rw-r--r--protocols/JabberG/src/jabber_xstatus.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/protocols/JabberG/src/jabber_xstatus.cpp b/protocols/JabberG/src/jabber_xstatus.cpp
index 947d047537..53959c0c83 100644
--- a/protocols/JabberG/src/jabber_xstatus.cpp
+++ b/protocols/JabberG/src/jabber_xstatus.cpp
@@ -626,7 +626,7 @@ void CPepMood::ProcessItems(const TCHAR *from, HXML itemsNode)
}
else hSelfContact = m_proto->HContactFromJID(from);
- if (xmlGetChild(itemsNode, _T("retract"))) {
+ if (XmlGetChild(itemsNode, _T("retract"))) {
if (hSelfContact)
SetMood(hSelfContact, NULL, NULL);
SetMood(hContact, NULL, NULL);
@@ -637,11 +637,11 @@ void CPepMood::ProcessItems(const TCHAR *from, HXML itemsNode)
if (!moodNode) return;
LPCTSTR moodType = NULL, moodText = NULL;
- for (int i=0; n = xmlGetChild(moodNode, i); i++) {
- if (!mir_tstrcmp(xmlGetName(n), _T("text")))
- moodText = xmlGetText(n);
+ for (int i=0; n = XmlGetChild(moodNode, i); i++) {
+ if (!mir_tstrcmp(XmlGetName(n), _T("text")))
+ moodText = XmlGetText(n);
else
- moodType = xmlGetName(n);
+ moodType = XmlGetName(n);
}
TCHAR *fixedText = JabberStrFixLines(moodText);
@@ -1006,7 +1006,7 @@ void CPepActivity::ProcessItems(const TCHAR *from, HXML itemsNode)
}
else hSelfContact = m_proto->HContactFromJID(from);
- if (xmlGetChild(itemsNode, "retract")) {
+ if (XmlGetChild(itemsNode, "retract")) {
if (hSelfContact)
SetActivity(hSelfContact, NULL, NULL, NULL);
SetActivity(hContact, NULL, NULL, NULL);
@@ -1021,12 +1021,12 @@ void CPepActivity::ProcessItems(const TCHAR *from, HXML itemsNode)
LPCTSTR szFirstNode = NULL, szSecondNode = NULL;
HXML n;
- for (int i=0; n = xmlGetChild(actNode, i); i++) {
- if (mir_tstrcmp(xmlGetName(n), _T("text"))) {
- szFirstNode = xmlGetName(n);
- HXML secondNode = xmlGetChild(n, 0);
- if (szFirstNode && secondNode && xmlGetName(secondNode))
- szSecondNode = xmlGetName(secondNode);
+ for (int i=0; n = XmlGetChild(actNode, i); i++) {
+ if (mir_tstrcmp(XmlGetName(n), _T("text"))) {
+ szFirstNode = XmlGetName(n);
+ HXML secondNode = XmlGetChild(n, 0);
+ if (szFirstNode && secondNode && XmlGetName(secondNode))
+ szSecondNode = XmlGetName(secondNode);
break;
}
}