X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/9d093a68b5f3e5a22e243c92ec2e0bd24b10ea38..8a02f262b81cd7421a0083a4faaac02aa8d9b019:/projects/stargazer/plugins/configuration/sgconfig-ng/creator.cpp

diff --git a/projects/stargazer/plugins/configuration/sgconfig-ng/creator.cpp b/projects/stargazer/plugins/configuration/sgconfig-ng/creator.cpp
index 042c2055..1faa7d60 100644
--- a/projects/stargazer/plugins/configuration/sgconfig-ng/creator.cpp
+++ b/projects/stargazer/plugins/configuration/sgconfig-ng/creator.cpp
@@ -1,27 +1,7 @@
+#include "stg/plugin_creator.h"
 #include "stgconfig.h"
 
-class STGCONFIG_CREATOR
-{
-private:
-    STGCONFIG2 * stgconfig;
-
-public:
-    STGCONFIG_CREATOR()
-        : stgconfig(new STGCONFIG2())
-        {
-        };
-    ~STGCONFIG_CREATOR()
-        {
-        delete stgconfig;
-        };
-
-    STGCONFIG2 * GetPlugin()
-        {
-        return stgconfig;
-        };
-};
-
-STGCONFIG_CREATOR stgc;
+PLUGIN_CREATOR<STGCONFIG2> stgc;
 
 BASE_PLUGIN * GetPlugin()
 {