aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/machina
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-01-13 17:55:50 +0000
committerDavid Robillard <d@drobilla.net>2013-01-13 17:55:50 +0000
commit9b5da6b16fb7dacada67db377beaa46a61fe0c22 (patch)
treecacb72d6e1d6aff44ac5f4967617a3281dad053b /src/engine/machina
parent0cb9e2ad982390136a25dda96c88cd6cb40785f3 (diff)
downloadmachina-9b5da6b16fb7dacada67db377beaa46a61fe0c22.tar.gz
machina-9b5da6b16fb7dacada67db377beaa46a61fe0c22.tar.bz2
machina-9b5da6b16fb7dacada67db377beaa46a61fe0c22.zip
Lint.
git-svn-id: http://svn.drobilla.net/lad/trunk/machina@4960 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/machina')
-rw-r--r--src/engine/machina/Controller.hpp3
-rw-r--r--src/engine/machina/Machine.hpp2
-rw-r--r--src/engine/machina/types.hpp6
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);
}