]> git.stg.codes - stg.git/blobdiff - include/stg/plugin_creator.h
Various fixes of issues reported by static analyzers.
[stg.git] / include / stg / plugin_creator.h
index 755c20686cc8a2cca398be740a9b93a057aea011..e1531e1214694c16dc5e553d0d112971388edb5e 100644 (file)
@@ -1,20 +1,19 @@
 #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; }
 
 private:
     T * plugin;
-
-    PLUGIN_CREATOR(const PLUGIN_CREATOR<T> & rvalue);
-    PLUGIN_CREATOR<T> & operator=(const PLUGIN_CREATOR<T> & rvalue);
 };
 
 #endif