X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/13121b693bd98a04532195b9631b862b6136b3c7..3f99b236ec80087c9cede047b4d6c3e8eea6f8ab:/include/stg/plugin.h?ds=sidebyside 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; };