diff options
author | crupest <crupest@outlook.com> | 2018-11-09 20:57:29 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-11-09 20:57:29 +0800 |
commit | 9ef75fe91837394620edb91f332065a4f34a0281 (patch) | |
tree | 39a3e67f9a34ce44cc65b74d0ec82691cffd5dfa /src/ui/layout_base.hpp | |
parent | efdce672123284847bd7fb6f12ac1ec96f28f3ef (diff) | |
download | cru-9ef75fe91837394620edb91f332065a4f34a0281.tar.gz cru-9ef75fe91837394620edb91f332065a4f34a0281.tar.bz2 cru-9ef75fe91837394620edb91f332065a4f34a0281.zip |
Add singleton system.
Diffstat (limited to 'src/ui/layout_base.hpp')
-rw-r--r-- | src/ui/layout_base.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/layout_base.hpp b/src/ui/layout_base.hpp index 1c35f0b7..512301b7 100644 --- a/src/ui/layout_base.hpp +++ b/src/ui/layout_base.hpp @@ -147,9 +147,9 @@ namespace cru::ui { public: static LayoutManager* GetInstance(); - - public: + private: LayoutManager() = default; + public: LayoutManager(const LayoutManager& other) = delete; LayoutManager(LayoutManager&& other) = delete; LayoutManager& operator=(const LayoutManager& other) = delete; |