X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/868373be936ab08e51e1512a5173674ce64a2c70..907166f270d246529788a6de7688f3e54847c0a2:/include/stg/plugin_creator.h?ds=sidebyside 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; }