diff options
author | George Hazan <ghazan@miranda.im> | 2019-03-29 13:41:35 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-03-29 13:41:35 +0300 |
commit | 5cb569b2aa74d7ef2b96f9185d4b7dc0ca09b2a0 (patch) | |
tree | 0509a95bead18f22b9a3d3b220d7cb802fcd8f64 /protocols/JabberG/src/jabber_xml.h | |
parent | 9909cc3afdc580ca34dea4be7522278565d7e43f (diff) |
Jabber: code optimization
Diffstat (limited to 'protocols/JabberG/src/jabber_xml.h')
-rw-r--r-- | protocols/JabberG/src/jabber_xml.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/JabberG/src/jabber_xml.h b/protocols/JabberG/src/jabber_xml.h index 32fb0136c5..230be83e14 100644 --- a/protocols/JabberG/src/jabber_xml.h +++ b/protocols/JabberG/src/jabber_xml.h @@ -36,6 +36,11 @@ public: XmlNode(const char *name);
XmlNode(const char *pszName, const char *ptszText);
+ __forceinline void operator +=(const TiXmlElement *pNode)
+ {
+ m_hXml->InsertEndChild(pNode->DeepClone(this)->ToElement());
+ }
+
__forceinline TiXmlElement* node() const
{ return m_hXml;
}
|