diff options
Diffstat (limited to '')
-rw-r--r-- | src/utils/activator.hpp | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/src/utils/activator.hpp b/src/utils/activator.hpp index 7384b2a8..681fcbf7 100644 --- a/src/utils/activator.hpp +++ b/src/utils/activator.hpp @@ -27,28 +27,18 @@ #include <boost/noncopyable.hpp> +#include "activatable.hpp" + namespace usdx { - template<typename Activatable> - class Activator : public boost::noncopyable + class Activator : public boost::noncopyable { private: Activatable* activatable; - public: - Activator(Activatable* activatable) - : activatable(activatable) - { - if (activatable) { - activatable->enable(); - } - } - virtual ~Activator() - { - if (activatable) { - activatable->disable(); - } - } + public: + Activator(Activatable* activatable); + virtual ~Activator(); }; }; |