From 8ee8e55ff2b085762dad5ab41269448e7a91757f Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Fri, 13 Jun 2025 20:19:22 +0800 Subject: internal: shortened smart pointer types --- src/core/chatManager.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core/chatManager.hpp') 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 +#include "../misc/memory.hpp" #include #include #include @@ -14,7 +14,7 @@ class CChatManager { struct SMessage { std::string msg; std::string username; - std::optional> sender = std::nullopt; + std::optional> sender = std::nullopt; bool admin = false; }; void newMessage(const SMessage &msg); @@ -22,4 +22,4 @@ class CChatManager { std::vector getChat() const; }; -inline std::unique_ptr g_pChatManager; +inline UP g_pChatManager; -- cgit v1.2.3