Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fwsetup-ng.git;a=commitdiff;h=876983cf947712f067c66021ef45fd05c63084ce
commit 876983cf947712f067c66021ef45fd05c63084ce Author: James Buren <[email protected]> Date: Sun Aug 26 23:38:11 2012 -0500 add function for deleting last partition entry diff --git a/PartitionTable.hh b/PartitionTable.hh index e1f36f8..198322b 100644 --- a/PartitionTable.hh +++ b/PartitionTable.hh @@ -18,6 +18,14 @@ public: Partition *getPartition(size_t n) { return _table.at(n); } void putPartition(Partition *part) { _table.push_back(part); } virtual Partition *newPartition() { return 0; } + void deleteLastPartition() + { + if(!_table.empty()) + { + delete _table.back(); + _table.pop_back(); + } + } protected: string _label; _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
