Change selected partition into a pointer (#750168)

Now that TreeView_Details and DrawingAreaVisualDisk classes store and
pass pointers to partition objects in the Gtk signal callbacks, change
the selected partition into a pointer too.

Bug 750168 - Reduce the amount of copying of partition objects
This commit is contained in:
Mike Fleetwood 2015-05-17 14:01:48 +01:00 committed by Curtis Gedak
parent cc1448abd2
commit da39e3cad3
2 changed files with 251 additions and 248 deletions

View File

@ -185,7 +185,9 @@ private:
unsigned int current_device ;
std::vector<Partition> display_partitions; // Copy of current device's partitions with any pending
// operations applied, as currently being shown in the GUI.
Partition selected_partition, copied_partition;
const Partition * selected_partition_ptr; // Pointer to the selected partition. (Alias to element
// in Win_GParted::display_partitions[] vector).
Partition copied_partition;
std::vector<Device> devices;
std::vector<Operation *> operations;

File diff suppressed because it is too large Load Diff