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:
parent
c2e12cbf52
commit
acd0c22a3d
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue