summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-09-23 19:12:44 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-09-23 19:12:44 (GMT)
commitde660b763459cdd707876ec244b6866abca07fa2 (patch)
treecc9e34f17a18dc152b8a90a0c7cf0076c46a297e /Swiften/Parser/Tree/ParserElement.cpp
parentde50064af14eb31f027ea7fa59501c9b3754eafd (diff)
downloadswift-contrib-de660b763459cdd707876ec244b6866abca07fa2.zip
swift-contrib-de660b763459cdd707876ec244b6866abca07fa2.tar.bz2
Whitespace tweaks.
Diffstat (limited to 'Swiften/Parser/Tree/ParserElement.cpp')
-rw-r--r--Swiften/Parser/Tree/ParserElement.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/Swiften/Parser/Tree/ParserElement.cpp b/Swiften/Parser/Tree/ParserElement.cpp
index 0baf709..9d9b9b6 100644
--- a/Swiften/Parser/Tree/ParserElement.cpp
+++ b/Swiften/Parser/Tree/ParserElement.cpp
@@ -13,15 +13,9 @@
namespace Swift{
ParserElement::ParserElement(const std::string& name, const std::string& xmlns, const AttributeMap& attributes) : name_(name), xmlns_(xmlns), attributes_(attributes) {
-
}
ParserElement::~ParserElement() {
-
-}
-
-ParserElement::operator bool() {
- return true;
}
ParserElement::ref ParserElement::addChild(const std::string& name, const std::string& xmlns, const AttributeMap& attributes) {
@@ -52,7 +46,7 @@ std::vector<ParserElement::ref> ParserElement::getChildren(const std::string& na
ParserElement::ref ParserElement::getChild(const std::string& name, const std::string& xmlns) const {
std::vector<ParserElement::ref> results = getChildren(name, xmlns);
- ParserElement::ref result = results.empty() ? boost::make_shared<NullParserElement>() : results[0];
+ ParserElement::ref result = results.empty() ? NullParserElement::element : results[0];
return result;
}