From 070242562b4fea912e6d5b84e221c8e17a7941e1 Mon Sep 17 00:00:00 2001 From: Bart Hakvoort Date: Fri, 1 Dec 2006 13:16:37 +0000 Subject: [PATCH] fixed issue with overloaded == * src/Partition.cc: fixed issue with overloaded == --- ChangeLog | 4 ++++ src/Partition.cc | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 593b226f..91a1f35c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-12-01 Bart Hakvoort + + * src/Partition.cc: fixed issue with overloaded == + 2006-12-01 Bart Hakvoort * include/Dialog_Progress.h, diff --git a/src/Partition.cc b/src/Partition.cc index f1054d05..e76ab7c9 100644 --- a/src/Partition.cc +++ b/src/Partition.cc @@ -170,9 +170,10 @@ std::vector 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