Rename Device::add_path() to set_path() (#767842)
To reflect that there is only a single path in the Device object now. Also get rid of the now unneeded optional parameter which was only relevant when there was a vector of paths. Bug 767842 - File system usage missing when tools report alternate block device names
This commit is contained in:
parent
902afaa010
commit
1dc8a0c628
|
@ -32,7 +32,7 @@ public:
|
|||
~Device() ;
|
||||
|
||||
Device get_copy_without_partitions() const;
|
||||
void add_path( const Glib::ustring & path, bool clear_paths = false ) ;
|
||||
void set_path( const Glib::ustring & path );
|
||||
Glib::ustring get_path() const ;
|
||||
void enable_partition_naming( int length ); // > 0 => enable partition naming support
|
||||
bool partition_naming_supported() const;
|
||||
|
|
|
@ -58,7 +58,7 @@ Device Device::get_copy_without_partitions() const
|
|||
return new_device; // (3) Return by value.
|
||||
}
|
||||
|
||||
void Device::add_path( const Glib::ustring & path, bool clear_paths )
|
||||
void Device::set_path( const Glib::ustring & path )
|
||||
{
|
||||
this->path = path;
|
||||
}
|
||||
|
|
|
@ -277,7 +277,7 @@ void GParted_Core::set_devices_thread( std::vector<Device> * pdevices )
|
|||
temp_device .Reset() ;
|
||||
|
||||
//device info..
|
||||
temp_device .add_path( device_paths[ t ] ) ;
|
||||
temp_device.set_path( device_paths[t] );
|
||||
|
||||
temp_device .model = lp_device ->model ;
|
||||
temp_device .length = lp_device ->length ;
|
||||
|
|
Loading…
Reference in New Issue