]> git.stg.codes - stg.git/blobdiff - include/stg/plugin_creator.h
Remove std::list from actions.
[stg.git] / include / stg / plugin_creator.h
index d50feb935f3b969e55f926120abc9563b9673e87..e1531e1214694c16dc5e553d0d112971388edb5e 100644 (file)
@@ -1,12 +1,14 @@
 #ifndef __PLUGIN_CREATOR_H__
 #define __PLUGIN_CREATOR_H__
 
+#include "noncopyable.h"
+
 template <class T>
-class PLUGIN_CREATOR
+class PLUGIN_CREATOR : private NONCOPYABLE
 {
 public:
     PLUGIN_CREATOR() : plugin(new T()) {}
-    ~PLUGIN_CREATOR() { delete plugin; }
+    //~PLUGIN_CREATOR() { delete plugin; }
 
     T * GetPlugin() { return plugin; }