summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-06-12 19:54:37 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-06-12 19:54:37 (GMT)
commit47e607addf2b4ae475b49ff42d0817ffbeafaa46 (patch)
tree9a5dcccf5d12019690079a7665cb9f67f1312c4d /Swiften/Parser/PayloadParsers/PrivateStorageParser.cpp
parent8df7a3c93342e49c6b407b390e631f058546c0c3 (diff)
downloadswift-contrib-47e607addf2b4ae475b49ff42d0817ffbeafaa46.zip
swift-contrib-47e607addf2b4ae475b49ff42d0817ffbeafaa46.tar.bz2
Removed more explicit calls to get().
Diffstat (limited to 'Swiften/Parser/PayloadParsers/PrivateStorageParser.cpp')
-rw-r--r--Swiften/Parser/PayloadParsers/PrivateStorageParser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Swiften/Parser/PayloadParsers/PrivateStorageParser.cpp b/Swiften/Parser/PayloadParsers/PrivateStorageParser.cpp
index b7bcd5d..bf16394 100644
--- a/Swiften/Parser/PayloadParsers/PrivateStorageParser.cpp
+++ b/Swiften/Parser/PayloadParsers/PrivateStorageParser.cpp
@@ -21,7 +21,7 @@ void PrivateStorageParser::handleStartElement(const std::string& element, const
}
}
- if (level >= 1 && currentPayloadParser.get()) {
+ if (level >= 1 && currentPayloadParser) {
currentPayloadParser->handleStartElement(element, ns, attributes);
}
++level;
@@ -29,7 +29,7 @@ void PrivateStorageParser::handleStartElement(const std::string& element, const
void PrivateStorageParser::handleEndElement(const std::string& element, const std::string& ns) {
--level;
- if (currentPayloadParser.get()) {
+ if (currentPayloadParser) {
if (level >= 1) {
currentPayloadParser->handleEndElement(element, ns);
}
@@ -41,7 +41,7 @@ void PrivateStorageParser::handleEndElement(const std::string& element, const st
}
void PrivateStorageParser::handleCharacterData(const std::string& data) {
- if (level > 1 && currentPayloadParser.get()) {
+ if (level > 1 && currentPayloadParser) {
currentPayloadParser->handleCharacterData(data);
}
}