diff --git a/server/config.hpp b/server/config.hpp index 3c97dddf..09344285 100644 --- a/server/config.hpp +++ b/server/config.hpp @@ -46,9 +46,12 @@ struct JsonConfigItem { /// Read config item from json object @p j virtual void fromJson(const json& j) = 0; - /// @return config item serialized to json + /// @return config item serialized to json virtual json toJson() = 0; + /// d'tor + virtual ~JsonConfigItem() = default; + protected: /// @return value for key @p what or @p def, if not found. Result is casted to T. template