summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/History')
-rw-r--r--Swiften/History/SQLiteHistoryStorage.cpp2
-rw-r--r--Swiften/History/SQLiteHistoryStorage.h5
2 files changed, 4 insertions, 3 deletions
diff --git a/Swiften/History/SQLiteHistoryStorage.cpp b/Swiften/History/SQLiteHistoryStorage.cpp
index d5ef8ad..ed15a2a 100644
--- a/Swiften/History/SQLiteHistoryStorage.cpp
+++ b/Swiften/History/SQLiteHistoryStorage.cpp
@@ -30,7 +30,7 @@ inline std::string getEscapedString(const std::string& s) {
namespace Swift {
SQLiteHistoryStorage::SQLiteHistoryStorage(const boost::filesystem::path& file) : db_(nullptr) {
- thread_ = new boost::thread(boost::bind(&SQLiteHistoryStorage::run, this));
+ thread_ = new std::thread(boost::bind(&SQLiteHistoryStorage::run, this));
sqlite3_open(pathToString(file).c_str(), &db_);
if (!db_) {
diff --git a/Swiften/History/SQLiteHistoryStorage.h b/Swiften/History/SQLiteHistoryStorage.h
index b0223f5..57f0d35 100644
--- a/Swiften/History/SQLiteHistoryStorage.h
+++ b/Swiften/History/SQLiteHistoryStorage.h
@@ -6,9 +6,10 @@
#pragma once
+#include <thread>
+
#include <boost/filesystem/path.hpp>
#include <boost/optional.hpp>
-#include <boost/thread.hpp>
#include <Swiften/Base/API.h>
#include <Swiften/History/HistoryStorage.h>
@@ -38,6 +39,6 @@ namespace Swift {
boost::optional<long long> getIDFromJID(const JID& jid) const;
sqlite3* db_;
- boost::thread* thread_;
+ std::thread* thread_;
};
}