diff options
Diffstat (limited to 'src/engine/machina')
-rw-r--r-- | src/engine/machina/Controller.hpp | 3 | ||||
-rw-r--r-- | src/engine/machina/Machine.hpp | 2 | ||||
-rw-r--r-- | src/engine/machina/types.hpp | 6 |
3 files changed, 6 insertions, 5 deletions
diff --git a/src/engine/machina/Controller.hpp b/src/engine/machina/Controller.hpp index 56ac93b..7738f22 100644 --- a/src/engine/machina/Controller.hpp +++ b/src/engine/machina/Controller.hpp @@ -40,7 +40,8 @@ class Machine; class Stateful; namespace client { -class ClientModel; class ClientObject; +class ClientModel; +class ClientObject; } class Controller diff --git a/src/engine/machina/Machine.hpp b/src/engine/machina/Machine.hpp index a068f02..a4d0262 100644 --- a/src/engine/machina/Machine.hpp +++ b/src/engine/machina/Machine.hpp @@ -41,7 +41,7 @@ class Machine : public Stateful { public: - Machine(TimeUnit unit); + explicit Machine(TimeUnit unit); /** Copy a Machine. * diff --git a/src/engine/machina/types.hpp b/src/engine/machina/types.hpp index 632e138..38cd29c 100644 --- a/src/engine/machina/types.hpp +++ b/src/engine/machina/types.hpp @@ -36,17 +36,17 @@ using WPtr = std::weak_ptr<T>; template <class T> void NullDeleter(T* ptr) {} -template<class T, class U> +template<class T, class U> SPtr<T> static_ptr_cast(const SPtr<U>& r) { return std::static_pointer_cast<T>(r); } -template<class T, class U> +template<class T, class U> SPtr<T> dynamic_ptr_cast(const SPtr<U>& r) { return std::dynamic_pointer_cast<T>(r); } -template<class T, class U> +template<class T, class U> SPtr<T> const_ptr_cast(const SPtr<U>& r) { return std::const_pointer_cast<T>(r); } |