X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/641204dfbdb9fc870cdd2e7f9e3169a44693e7bf..383b619950c004ce31ba1e3ee7d4753b1aeb4717:/projects/stargazer/plugins/store/firebird/firebird_store.cpp diff --git a/projects/stargazer/plugins/store/firebird/firebird_store.cpp b/projects/stargazer/plugins/store/firebird/firebird_store.cpp index c9265e14..f3f435cb 100644 --- a/projects/stargazer/plugins/store/firebird/firebird_store.cpp +++ b/projects/stargazer/plugins/store/firebird/firebird_store.cpp @@ -30,31 +30,17 @@ #include #include -using namespace std; - +#include "stg/ibpp.h" +#include "stg/plugin_creator.h" #include "firebird_store.h" -#include "ibpp.h" -class FIREBIRD_STORE_CREATOR -{ -public: - FIREBIRD_STORE_CREATOR() - : frb(new FIREBIRD_STORE()) - { - }; - ~FIREBIRD_STORE_CREATOR() - { - delete frb; - }; - FIREBIRD_STORE * GetStore() { return frb; }; -private: - FIREBIRD_STORE * frb; -} frsc; +using namespace std; +PLUGIN_CREATOR frsc; //----------------------------------------------------------------------------- -BASE_STORE * GetStore() +STORE * GetStore() { -return frsc.GetStore(); +return frsc.GetPlugin(); } //----------------------------------------------------------------------------- //-----------------------------------------------------------------------------