diff options
| author | Remko Tronçon <git@el-tramo.be> | 2010-09-06 09:19:02 (GMT) |
|---|---|---|
| committer | Remko Tronçon <git@el-tramo.be> | 2010-09-06 11:06:49 (GMT) |
| commit | 1e2c3461458f4274d539daf51507ce81d845cce0 (patch) | |
| tree | 9507863b011691f22212d5cc76d484dff1343d36 /Swiften/Parser/PayloadParsers/RosterParser.cpp | |
| parent | e8dbe2e2b78cd5e4a66e2e580e12d05b2e69b120 (diff) | |
| download | swift-1e2c3461458f4274d539daf51507ce81d845cce0.zip swift-1e2c3461458f4274d539daf51507ce81d845cce0.tar.bz2 | |
Partial VCard support without losing unknown data.
Diffstat (limited to 'Swiften/Parser/PayloadParsers/RosterParser.cpp')
| -rw-r--r-- | Swiften/Parser/PayloadParsers/RosterParser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Swiften/Parser/PayloadParsers/RosterParser.cpp b/Swiften/Parser/PayloadParsers/RosterParser.cpp index c3a35b6..6db2b30 100644 --- a/Swiften/Parser/PayloadParsers/RosterParser.cpp +++ b/Swiften/Parser/PayloadParsers/RosterParser.cpp | |||
| @@ -69,10 +69,11 @@ void RosterParser::handleEndElement(const String& element, const String& ns) { | |||
| 69 | } | 69 | } |
| 70 | else if (level_ == ItemLevel) { | 70 | else if (level_ == ItemLevel) { |
| 71 | if (unknownContentParser_) { | 71 | if (unknownContentParser_) { |
| 72 | unknownContentParser_->handleEndElement(element, ns); | 72 | unknownContentParser_->handleEndElement(element, ns); |
| 73 | currentItem_.addUnknownContent(unknownContentParser_->getResult()); | 73 | currentItem_.addUnknownContent(unknownContentParser_->getResult()); |
| 74 | delete unknownContentParser_; | ||
| 74 | unknownContentParser_ = NULL; | 75 | unknownContentParser_ = NULL; |
| 75 | } | 76 | } |
| 76 | else if (element == "group") { | 77 | else if (element == "group") { |
| 77 | currentItem_.addGroup(currentText_); | 78 | currentItem_.addGroup(currentText_); |
| 78 | } | 79 | } |
Swift