aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/Channel.hpp4
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;