diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-05-02 18:17:19 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-05-02 18:24:14 (GMT) |
commit | 81443e9863763187a4d6e40a5b7c75be6ad39809 (patch) | |
tree | c75225e9826b96d1d83c0702dbfa9b3bf1924a15 /Swiften/Entity | |
parent | 2d84b0e551a2661c03bdb96f575effb47b22d678 (diff) | |
download | swift-contrib-81443e9863763187a4d6e40a5b7c75be6ad39809.zip swift-contrib-81443e9863763187a4d6e40a5b7c75be6ad39809.tar.bz2 |
Replace auto_ptr by shared_ptr.
Diffstat (limited to 'Swiften/Entity')
-rw-r--r-- | Swiften/Entity/PayloadPersister.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/Entity/PayloadPersister.cpp b/Swiften/Entity/PayloadPersister.cpp index f7278cc..ac5a578 100644 --- a/Swiften/Entity/PayloadPersister.cpp +++ b/Swiften/Entity/PayloadPersister.cpp @@ -42,7 +42,7 @@ boost::shared_ptr<Payload> PayloadPersister::loadPayload(const boost::filesystem if (boost::filesystem::exists(path)) { ByteArray data; data.readFromFile(path.string()); - std::auto_ptr<PayloadParser> parser(createParser()); + boost::shared_ptr<PayloadParser> parser(createParser()); PayloadParserTester tester(parser.get()); tester.parse(data.toString()); return parser->getPayload(); |