summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Entity/PayloadPersister.cpp')
-rw-r--r--Swiften/Entity/PayloadPersister.cpp2
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();