X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/41a9f8066376f8d86b26f03dcab1128e6c0eec08..005739f70a1d33ff4babbb3e6152fc6063aa480b:/include/stg/plugin_creator.h diff --git a/include/stg/plugin_creator.h b/include/stg/plugin_creator.h index 755c2068..e1531e12 100644 --- a/include/stg/plugin_creator.h +++ b/include/stg/plugin_creator.h @@ -1,20 +1,19 @@ #ifndef __PLUGIN_CREATOR_H__ #define __PLUGIN_CREATOR_H__ +#include "noncopyable.h" + template -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 & rvalue); - PLUGIN_CREATOR & operator=(const PLUGIN_CREATOR & rvalue); }; #endif