X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/868373be936ab08e51e1512a5173674ce64a2c70..8337f36907f14b1e9979108800e82b8e0ca47a59:/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; }