diff options
Diffstat (limited to 'Swiften/Parser/PayloadParsers/StorageParser.cpp')
-rw-r--r-- | Swiften/Parser/PayloadParsers/StorageParser.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Swiften/Parser/PayloadParsers/StorageParser.cpp b/Swiften/Parser/PayloadParsers/StorageParser.cpp index 660bdd0..c82b82c 100644 --- a/Swiften/Parser/PayloadParsers/StorageParser.cpp +++ b/Swiften/Parser/PayloadParsers/StorageParser.cpp @@ -16,11 +16,11 @@ StorageParser::StorageParser() : level(TopLevel) { void StorageParser::handleStartElement(const String& element, const String&, const AttributeMap& attributes) { if (level == BookmarkLevel) { if (element == "conference") { - assert(!conference); - conference = Storage::Conference(); - conference->autoJoin = attributes.getBoolAttribute("autojoin", false); - conference->jid = JID(attributes.getAttribute("jid")); - conference->name = attributes.getAttribute("name"); + assert(!room); + room = Storage::Room(); + room->autoJoin = attributes.getBoolAttribute("autojoin", false); + room->jid = JID(attributes.getAttribute("jid")); + room->name = attributes.getAttribute("name"); } else if (element == "url") { assert(!url); @@ -39,9 +39,9 @@ void StorageParser::handleEndElement(const String& element, const String&) { --level; if (level == BookmarkLevel) { if (element == "conference") { - assert(conference); - getPayloadInternal()->addConference(*conference); - conference.reset(); + assert(room); + getPayloadInternal()->addRoom(*room); + room.reset(); } else if (element == "url") { assert(url); @@ -49,12 +49,12 @@ void StorageParser::handleEndElement(const String& element, const String&) { url.reset(); } } - else if (level == DetailLevel && conference) { + else if (level == DetailLevel && room) { if (element == "nick") { - conference->nick = currentText; + room->nick = currentText; } else if (element == "password") { - conference->password = currentText; + room->password = currentText; } } } |