summaryrefslogtreecommitdiff
path: root/src/core/chatManager.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/chatManager.hpp')
-rw-r--r--src/core/chatManager.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/chatManager.hpp b/src/core/chatManager.hpp
index bd305de..d109424 100644
--- a/src/core/chatManager.hpp
+++ b/src/core/chatManager.hpp
@@ -1,6 +1,6 @@
#pragma once
-#include <memory>
+#include "../misc/memory.hpp"
#include <optional>
#include <string>
#include <vector>
@@ -14,7 +14,7 @@ class CChatManager {
struct SMessage {
std::string msg;
std::string username;
- std::optional<std::weak_ptr<CSession>> sender = std::nullopt;
+ std::optional<WP<CSession>> sender = std::nullopt;
bool admin = false;
};
void newMessage(const SMessage &msg);
@@ -22,4 +22,4 @@ class CChatManager {
std::vector<SMessage> getChat() const;
};
-inline std::unique_ptr<CChatManager> g_pChatManager;
+inline UP<CChatManager> g_pChatManager;