1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-22 07:42:37 +00:00

refactor: add virtual destructor to the polymorphic Settings class (#6786)

Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>
This commit is contained in:
Dzmitry Neviadomski 2024-05-25 23:20:40 +03:00 committed by GitHub
parent c2e12cbf52
commit acd0c22a3d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,6 +20,12 @@ namespace libtransmission
class Settings class Settings
{ {
public: public:
virtual ~Settings() = default;
Settings(Settings const& settings) = default;
Settings& operator=(Settings const& other) = default;
Settings(Settings&& settings) noexcept = default;
Settings& operator=(Settings&& other) noexcept = default;
void load(tr_variant const& src); void load(tr_variant const& src);
[[nodiscard]] tr_variant save() const; [[nodiscard]] tr_variant save() const;