diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-10-21 14:40:36 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2018-10-21 14:40:39 +0200 |
commit | 6d00a0dd54d7ac563574a583929c2e99a17a6ae7 (patch) | |
tree | a355af6a9a8b4de083d63ca152cd6f6ede8270ac /include | |
parent | 997f700f174596a915a0a9d6603a1c79a4490f6b (diff) |
Fix for odhtdb changes
Diffstat (limited to 'include')
-rw-r--r-- | include/Channel.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<odhtdb::Database> 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<odhtdb::Database> database; odhtdb::DatabaseNode databaseNodeInfo; std::string name; MessageBoard messageBoard; |