diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-06-12 20:54:45 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-06-12 20:54:45 (GMT) |
commit | 7928fe52faf92a7c2cbe5046c48cea3e0d7f95e6 (patch) | |
tree | 8792c92001d3af3cda29eaabd9b1877be344b2b0 /Swiften/Parser | |
parent | 8a89ec2184fdb27b86c813bdbc0ce5d138f692ac (diff) | |
download | swift-7928fe52faf92a7c2cbe5046c48cea3e0d7f95e6.zip swift-7928fe52faf92a7c2cbe5046c48cea3e0d7f95e6.tar.bz2 |
Replacing explicit new with make_shared.
Diffstat (limited to 'Swiften/Parser')
-rw-r--r-- | Swiften/Parser/SerializingParser.cpp | 2 |
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)); } } |