From 6d00a0dd54d7ac563574a583929c2e99a17a6ae7 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 21 Oct 2018 14:40:36 +0200 Subject: Fix for odhtdb changes --- include/Channel.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/Channel.hpp b/include/Channel.hpp index 8c08244..443a722 100644 --- a/include/Channel.hpp +++ b/include/Channel.hpp @@ -35,7 +35,7 @@ namespace dchat class Channel { public: - Channel(const std::string &name, const odhtdb::DatabaseNode &databaseNodeInfo = odhtdb::DatabaseNode(), User *localUser = nullptr, odhtdb::Database *database = nullptr); + Channel(const std::string &name, const odhtdb::DatabaseNode &databaseNodeInfo = odhtdb::DatabaseNode(), User *localUser = nullptr, std::shared_ptr database = nullptr); virtual ~Channel(); Channel(const Channel& other) = delete; Channel& operator = (const Channel &other) = delete; @@ -86,7 +86,7 @@ namespace dchat private: void sendPing(u32 pingTimestampSec); protected: - odhtdb::Database *database; + std::shared_ptr database; odhtdb::DatabaseNode databaseNodeInfo; std::string name; MessageBoard messageBoard; -- cgit v1.2.3