summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Parser/PayloadParsers/ReplaceParser.cpp')
-rw-r--r--Swiften/Parser/PayloadParsers/ReplaceParser.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/Swiften/Parser/PayloadParsers/ReplaceParser.cpp b/Swiften/Parser/PayloadParsers/ReplaceParser.cpp
index f3483be..66e219a 100644
--- a/Swiften/Parser/PayloadParsers/ReplaceParser.cpp
+++ b/Swiften/Parser/PayloadParsers/ReplaceParser.cpp
@@ -16,22 +16,22 @@
namespace Swift {
- ReplaceParser::ReplaceParser() : level_(0) {
- }
-
- void ReplaceParser::handleStartElement(const std::string&, const std::string&, const AttributeMap& attributes) {
- if (level_ == 0) {
- std::string id = attributes.getAttribute("id");
- getPayloadInternal()->setID(id);
- }
- level_++;
- }
-
- void ReplaceParser::handleEndElement(const std::string&, const std::string&) {
- --level_;
- }
-
- void ReplaceParser::handleCharacterData(const std::string&) {
- }
+ ReplaceParser::ReplaceParser() : level_(0) {
+ }
+
+ void ReplaceParser::handleStartElement(const std::string&, const std::string&, const AttributeMap& attributes) {
+ if (level_ == 0) {
+ std::string id = attributes.getAttribute("id");
+ getPayloadInternal()->setID(id);
+ }
+ level_++;
+ }
+
+ void ReplaceParser::handleEndElement(const std::string&, const std::string&) {
+ --level_;
+ }
+
+ void ReplaceParser::handleCharacterData(const std::string&) {
+ }
}