summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-05-03 20:39:27 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-05-05 19:43:14 (GMT)
commit772b2ec0243d7b55d91e4027d828881d18093ed0 (patch)
tree83a58b2b97f3992165ee20c05e0630452eb50457 /Swiften/Entity
parent0b3db8fd68abee7269d5a38aabd8a816e099eae5 (diff)
downloadswift-contrib-772b2ec0243d7b55d91e4027d828881d18093ed0.zip
swift-contrib-772b2ec0243d7b55d91e4027d828881d18093ed0.tar.bz2
Replace ByteArray by typedef.
Diffstat (limited to 'Swiften/Entity')
-rw-r--r--Swiften/Entity/PayloadPersister.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Swiften/Entity/PayloadPersister.cpp b/Swiften/Entity/PayloadPersister.cpp
index ac5a578..955135b 100644
--- a/Swiften/Entity/PayloadPersister.cpp
+++ b/Swiften/Entity/PayloadPersister.cpp
@@ -41,10 +41,10 @@ void PayloadPersister::savePayload(boost::shared_ptr<Payload> payload, const boo
boost::shared_ptr<Payload> PayloadPersister::loadPayload(const boost::filesystem::path& path) {
if (boost::filesystem::exists(path)) {
ByteArray data;
- data.readFromFile(path.string());
+ readByteArrayFromFile(data, path.string());
boost::shared_ptr<PayloadParser> parser(createParser());
PayloadParserTester tester(parser.get());
- tester.parse(data.toString());
+ tester.parse(byteArrayToString(data));
return parser->getPayload();
}
else {