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/io/IOManager.hpp | 2 +- src/io/inputManager.hpp | 4 ++-- src/io/renderManager.hpp | 4 ++-- src/io/scroller.cpp | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/io') diff --git a/src/io/IOManager.hpp b/src/io/IOManager.hpp index d1d891d..95eb27b 100644 --- a/src/io/IOManager.hpp +++ b/src/io/IOManager.hpp @@ -30,4 +30,4 @@ class CIOManager { friend class CChatManager; }; -inline std::unique_ptr g_pIOManager; +inline UP g_pIOManager; diff --git a/src/io/inputManager.hpp b/src/io/inputManager.hpp index a81e39d..a794ae9 100644 --- a/src/io/inputManager.hpp +++ b/src/io/inputManager.hpp @@ -1,7 +1,7 @@ #pragma once #include -#include +#include "../misc/memory.hpp" class CInputManager { public: @@ -22,4 +22,4 @@ class CInputManager { int bottomSize = 1; }; -inline std::unique_ptr g_pInputManager; +inline UP g_pInputManager; diff --git a/src/io/renderManager.hpp b/src/io/renderManager.hpp index 7a14cc0..3643f3c 100644 --- a/src/io/renderManager.hpp +++ b/src/io/renderManager.hpp @@ -1,7 +1,7 @@ #pragma once #include -#include +#include "../misc/memory.hpp" class CRenderManager { public: @@ -20,4 +20,4 @@ class CRenderManager { friend class CInputManager; }; -inline std::unique_ptr g_pRenderManager; +inline UP g_pRenderManager; diff --git a/src/io/scroller.cpp b/src/io/scroller.cpp index c595a39..9fd1427 100644 --- a/src/io/scroller.cpp +++ b/src/io/scroller.cpp @@ -4,7 +4,7 @@ #include // for max, min #include // for Component, ComponentBase #include // for Event, Event::ArrowDown, Event::ArrowUp, Event::End, Event::Home, Event::PageDown, Event::PageUp -#include // for shared_ptr, allocator, __shared_ptr_access +#include "../misc/memory.hpp" // for shared_ptr, allocator, __shared_ptr_access #include // for move #include "ftxui/component/component.hpp" // for Make -- cgit v1.2.3