summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_notes.cpp
diff options
context:
space:
mode:
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();