summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Parser/StreamManagementEnabledParser.cpp')
-rw-r--r--Swiften/Parser/StreamManagementEnabledParser.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/Swiften/Parser/StreamManagementEnabledParser.cpp b/Swiften/Parser/StreamManagementEnabledParser.cpp
index 5edcc2a..9e87d65 100644
--- a/Swiften/Parser/StreamManagementEnabledParser.cpp
+++ b/Swiften/Parser/StreamManagementEnabledParser.cpp
@@ -15,15 +15,15 @@ StreamManagementEnabledParser::~StreamManagementEnabledParser() {
}
void StreamManagementEnabledParser::handleStartElement(const std::string&, const std::string&, const AttributeMap& attributes) {
- if (level == TopLevel) {
- if (attributes.getBoolAttribute("resume", false)) {
- getElementGeneric()->setResumeSupported();
- }
- getElementGeneric()->setResumeID(attributes.getAttribute("id"));
- }
- ++level;
+ if (level == TopLevel) {
+ if (attributes.getBoolAttribute("resume", false)) {
+ getElementGeneric()->setResumeSupported();
+ }
+ getElementGeneric()->setResumeID(attributes.getAttribute("id"));
+ }
+ ++level;
}
void StreamManagementEnabledParser::handleEndElement(const std::string&, const std::string&) {
- --level;
+ --level;
}