X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/868373be936ab08e51e1512a5173674ce64a2c70..1e8eb98d30459399902534082c88b94bb26bb2e3:/include/stg/plugin_creator.h diff --git a/include/stg/plugin_creator.h b/include/stg/plugin_creator.h index d50feb93..e1531e12 100644 --- a/include/stg/plugin_creator.h +++ b/include/stg/plugin_creator.h @@ -1,12 +1,14 @@ #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; }