aboutsummaryrefslogtreecommitdiff
path: root/src/ui/layout_base.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-11-09 20:57:29 +0800
committercrupest <crupest@outlook.com>2018-11-09 20:57:29 +0800
commit9ef75fe91837394620edb91f332065a4f34a0281 (patch)
tree39a3e67f9a34ce44cc65b74d0ec82691cffd5dfa /src/ui/layout_base.hpp
parentefdce672123284847bd7fb6f12ac1ec96f28f3ef (diff)
downloadcru-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.hpp4
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;