summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_notes.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-02-25 15:16:23 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-02-25 15:16:23 +0300
commit899e841aea8e54721ce9771780b05a07de05ce71 (patch)
treea8d87fb94ccb1534a41fbb711053b5e70bdec420 /protocols/JabberG/src/jabber_notes.cpp
parent94cf6af342027cfaf486eefaad9f6f1450ecb8f0 (diff)
Jabber:
- obsolete class Xpath removed, its functionality replaced with helpers & iterators; - JABBER_FEAT_BIND added to enchance code reading & understanding; - unused function CNoteItem::AddNote removed; - fix for improper jabber:x:last behavior
Diffstat (limited to 'protocols/JabberG/src/jabber_notes.cpp')
-rw-r--r--protocols/JabberG/src/jabber_notes.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/protocols/JabberG/src/jabber_notes.cpp b/protocols/JabberG/src/jabber_notes.cpp
index 67678f107c..3b346ff64c 100644
--- a/protocols/JabberG/src/jabber_notes.cpp
+++ b/protocols/JabberG/src/jabber_notes.cpp
@@ -38,10 +38,10 @@ CNoteItem::CNoteItem()
CNoteItem::CNoteItem(const TiXmlElement *hXml, const char *szFrom)
{
SetData(
- XPath(hXml, "title"),
- szFrom ? szFrom : XPath(hXml, "@from"),
- Utf2T(XPath(hXml, "text")),
- XPath(hXml, "@tags"));
+ XmlGetChildText(hXml, "title"),
+ szFrom ? szFrom : hXml->Attribute("from"),
+ Utf2T(XmlGetChildText(hXml, "text")),
+ hXml->Attribute("tags"));
}
CNoteItem::~CNoteItem()
@@ -107,12 +107,6 @@ int CNoteItem::cmp(const CNoteItem *p1, const CNoteItem *p2)
return 0;
}
-void CNoteList::AddNote(TiXmlElement *hXml, const char *szFrom)
-{
- m_bIsModified = true;
- insert(new CNoteItem(hXml, szFrom));
-}
-
void CNoteList::LoadXml(const TiXmlElement *hXml)
{
destroy();