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