summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-06-12 20:54:45 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-06-12 20:54:45 (GMT)
commit7928fe52faf92a7c2cbe5046c48cea3e0d7f95e6 (patch)
tree8792c92001d3af3cda29eaabd9b1877be344b2b0 /Swiften/Parser/SerializingParser.cpp
parent8a89ec2184fdb27b86c813bdbc0ce5d138f692ac (diff)
downloadswift-contrib-7928fe52faf92a7c2cbe5046c48cea3e0d7f95e6.zip
swift-contrib-7928fe52faf92a7c2cbe5046c48cea3e0d7f95e6.tar.bz2
Replacing explicit new with make_shared.
Diffstat (limited to 'Swiften/Parser/SerializingParser.cpp')
-rw-r--r--Swiften/Parser/SerializingParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/Parser/SerializingParser.cpp b/Swiften/Parser/SerializingParser.cpp
index 25c2ec6..cd044cc 100644
--- a/Swiften/Parser/SerializingParser.cpp
+++ b/Swiften/Parser/SerializingParser.cpp
@@ -39,7 +39,7 @@ void SerializingParser::handleEndElement(const std::string&, const std::string&)
void SerializingParser::handleCharacterData(const std::string& data) {
if (!elementStack_.empty()) {
- (*(elementStack_.end()-1))->addNode(boost::shared_ptr<XMLTextNode>(new XMLTextNode(data)));
+ (*(elementStack_.end()-1))->addNode(boost::make_shared<XMLTextNode>(data));
}
}