Skip to content
Snippets Groups Projects
Commit ef6ffde9 authored by Studer Gabriel's avatar Studer Gabriel
Browse files

fix bugs in equal operators

this pops up as warning when compiling with a super new gcc (6.2)
parent 894bc7ad
Branches
Tags
No related merge requests found
...@@ -97,7 +97,7 @@ struct DLLEXPORT_OST_CONOP AtomSpec { ...@@ -97,7 +97,7 @@ struct DLLEXPORT_OST_CONOP AtomSpec {
bool operator==(const AtomSpec& rhs) const { bool operator==(const AtomSpec& rhs) const {
return ordinal==rhs.ordinal && name==rhs.name && alt_name==rhs.alt_name && return ordinal==rhs.ordinal && name==rhs.name && alt_name==rhs.alt_name &&
element==rhs.element && is_leaving==rhs.is_leaving && element==rhs.element && is_leaving==rhs.is_leaving &&
rhs.is_aromatic==rhs.is_aromatic; is_aromatic==rhs.is_aromatic;
} }
bool operator!=(const AtomSpec& rhs) const { bool operator!=(const AtomSpec& rhs) const {
......
...@@ -104,7 +104,7 @@ AlignedColumn AlignedRegion::operator[](int index) const ...@@ -104,7 +104,7 @@ AlignedColumn AlignedRegion::operator[](int index) const
bool AlignedRegion::operator==(const AlignedRegion& rhs) const bool AlignedRegion::operator==(const AlignedRegion& rhs) const
{ {
return aln_==rhs.aln_ && rhs.start_==start_ && return aln_==rhs.aln_ && rhs.start_==start_ &&
rhs.end_==rhs.end_ && master_==rhs.master_; end_==rhs.end_ && master_==rhs.master_;
} }
bool AlignedRegion::operator!=(const AlignedRegion& rhs) const bool AlignedRegion::operator!=(const AlignedRegion& rhs) const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment