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/animations/animation.hpp | |
parent | efdce672123284847bd7fb6f12ac1ec96f28f3ef (diff) | |
download | cru-9ef75fe91837394620edb91f332065a4f34a0281.tar.gz cru-9ef75fe91837394620edb91f332065a4f34a0281.tar.bz2 cru-9ef75fe91837394620edb91f332065a4f34a0281.zip |
Add singleton system.
Diffstat (limited to 'src/ui/animations/animation.hpp')
-rw-r--r-- | src/ui/animations/animation.hpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/ui/animations/animation.hpp b/src/ui/animations/animation.hpp index 99389f33..f25e4699 100644 --- a/src/ui/animations/animation.hpp +++ b/src/ui/animations/animation.hpp @@ -3,7 +3,6 @@ #include <unordered_map> #include "base.hpp" -#include "application.hpp" #include "timer.hpp" namespace cru::ui::animations @@ -53,13 +52,10 @@ namespace cru::ui::animations class AnimationManager : public Object { public: - static AnimationManager* GetInstance() - { - return Application::GetInstance()->GetAnimationManager(); - } - - public: + static AnimationManager* GetInstance(); + private: AnimationManager(); + public: AnimationManager(const AnimationManager& other) = delete; AnimationManager(AnimationManager&& other) = delete; AnimationManager& operator=(const AnimationManager& other) = delete; |