mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +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:
committed by
GitHub
parent
c2e12cbf52
commit
acd0c22a3d
@@ -20,6 +20,12 @@ namespace libtransmission
|
||||
class Settings
|
||||
{
|
||||
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);
|
||||
|
||||
[[nodiscard]] tr_variant save() const;
|
||||
|
||||
Reference in New Issue
Block a user