diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-06-13 20:19:22 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-06-13 20:23:03 +0800 |
| commit | 8ee8e55ff2b085762dad5ab41269448e7a91757f (patch) | |
| tree | ec1ed6b4944ca1fc4f1adbf67a255912e23a516c /src/io | |
| parent | 23492ea6f58762914a91516be6a9c180969178a2 (diff) | |
internal: shortened smart pointer types
Diffstat (limited to 'src/io')
| -rw-r--r-- | src/io/IOManager.hpp | 2 | ||||
| -rw-r--r-- | src/io/inputManager.hpp | 4 | ||||
| -rw-r--r-- | src/io/renderManager.hpp | 4 | ||||
| -rw-r--r-- | src/io/scroller.cpp | 2 |
4 files changed, 6 insertions, 6 deletions
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<CIOManager> g_pIOManager; +inline UP<CIOManager> 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 <ftxui/component/component.hpp> -#include <memory> +#include "../misc/memory.hpp" class CInputManager { public: @@ -22,4 +22,4 @@ class CInputManager { int bottomSize = 1; }; -inline std::unique_ptr<CInputManager> g_pInputManager; +inline UP<CInputManager> 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 <ftxui/component/screen_interactive.hpp> -#include <memory> +#include "../misc/memory.hpp" class CRenderManager { public: @@ -20,4 +20,4 @@ class CRenderManager { friend class CInputManager; }; -inline std::unique_ptr<CRenderManager> g_pRenderManager; +inline UP<CRenderManager> 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 <algorithm> // for max, min #include <ftxui/component/component_base.hpp> // for Component, ComponentBase #include <ftxui/component/event.hpp> // for Event, Event::ArrowDown, Event::ArrowUp, Event::End, Event::Home, Event::PageDown, Event::PageUp -#include <memory> // for shared_ptr, allocator, __shared_ptr_access +#include "../misc/memory.hpp" // for shared_ptr, allocator, __shared_ptr_access #include <utility> // for move #include "ftxui/component/component.hpp" // for Make |
