Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fwsetup-ng.git;a=commitdiff;h=fbafd8eff5a4c0a787fd6f3afe0f0b5b80a14dae
commit fbafd8eff5a4c0a787fd6f3afe0f0b5b80a14dae Author: James Buren <[email protected]> Date: Tue Aug 21 13:30:18 2012 -0500 declare destructors for these as virtual diff --git a/DosPartition.hh b/DosPartition.hh index db896ca..616e56c 100644 --- a/DosPartition.hh +++ b/DosPartition.hh @@ -7,7 +7,7 @@ class DosPartition : public Partition public: DosPartition() { _dos_type = 0, _dos_active = false; } - ~DosPartition() { } + virtual ~DosPartition() { } void setType(unsigned char type) { _dos_type = type; } virtual void setActive(bool active) { _dos_active = true; } unsigned char getType() { return _dos_type; } diff --git a/GptPartition.hh b/GptPartition.hh index 070ae37..0893aa7 100644 --- a/GptPartition.hh +++ b/GptPartition.hh @@ -7,7 +7,7 @@ class GptPartition : public Partition public: GptPartition() { _gpt_flags = 0; } - ~GptPartition() {} + virtual ~GptPartition() {} void setType(const string &type) { _gpt_type = type; } void setName(const string &name) { _gpt_name = name; } void setUUID(const string &uuid) { _gpt_uuid = uuid; } diff --git a/Partition.hh b/Partition.hh index 8500b09..94567db 100644 --- a/Partition.hh +++ b/Partition.hh @@ -9,7 +9,7 @@ class Partition public: Partition() { _number = 0, _start = 0, _end = 0, _sectors = 0; } - ~Partition() { } + virtual ~Partition() { } void setNumber(unsigned long long number) { _number = number; } void setStart(unsigned long long start) { _start = start; } void setEnd(unsigned long long end) { _end = end; } _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
