summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiftob/Storage.cpp')
-rw-r--r--Swiftob/Storage.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Swiftob/Storage.cpp b/Swiftob/Storage.cpp
index 47d0619..5311d82 100644
--- a/Swiftob/Storage.cpp
+++ b/Swiftob/Storage.cpp
@@ -7,4 +7,6 @@
#include <Swiftob/Storage.h>
+#include <boost/filesystem/operations.hpp>
+
#include <Swiften/Base/String.h>
#include <Swiften/Base/ByteArray.h>
@@ -24,5 +26,5 @@ void Storage::load() {
if (boost::filesystem::exists(settingsPath_)) {
Swift::ByteArray data;
- Swift::readByteArrayFromFile(data, settingsPath_.string());
+ Swift::readByteArrayFromFile(data, settingsPath_);
foreach (std::string line, Swift::String::split(Swift::byteArrayToString(data), '\n')) {
std::pair<std::string, std::string> pair = Swift::String::getSplittedAtFirst(line, '\t');