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