X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/13121b693bd98a04532195b9631b862b6136b3c7..93876a5fc8231cae1e9f13caf50492985e7ae76e:/include/stg/plugin.h diff --git a/include/stg/plugin.h b/include/stg/plugin.h index 845a3d15..114ffc8b 100644 --- a/include/stg/plugin.h +++ b/include/stg/plugin.h @@ -45,6 +45,7 @@ struct MODULE_SETTINGS; class PLUGIN : private NONCOPYABLE { public: + virtual ~PLUGIN() {} virtual void SetUsers(USERS *) {} virtual void SetTariffs(TARIFFS *) {} virtual void SetAdmins(ADMINS *) {} @@ -61,7 +62,7 @@ public: virtual int Reload() = 0; virtual bool IsRunning() = 0; virtual const std::string & GetStrError() const = 0; - virtual const std::string GetVersion() const = 0; + virtual std::string GetVersion() const = 0; virtual uint16_t GetStartPosition() const = 0; virtual uint16_t GetStopPosition() const = 0; };