fixed issue with overloaded ==

* src/Partition.cc: fixed issue with overloaded ==
This commit is contained in:
Bart Hakvoort 2006-12-01 13:16:37 +00:00
parent 7a413f6401
commit 070242562b
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2006-12-01 Bart Hakvoort <hakvoort@cvs.gnome.org>
* src/Partition.cc: fixed issue with overloaded ==
2006-12-01 Bart Hakvoort <hakvoort@cvs.gnome.org>
* include/Dialog_Progress.h,

View File

@ -170,9 +170,10 @@ std::vector<Glib::ustring> Partition::get_paths() const
bool Partition::operator==( const Partition & partition ) const
{
return this ->partition_number == partition .partition_number &&
this ->sector_start == partition .sector_start &&
this ->type == partition .type ;
return device_path == partition .device_path &&
partition_number == partition .partition_number &&
sector_start == partition .sector_start &&
type == partition .type ;
}
bool Partition::operator!=( const Partition & partition ) const