Skip to content

Commit 74f969a

Browse files
committed
Modernize Range equality to default comparison operator in disjoint_range_set
Assisted-by: Gemini:Next Bug: b/520128494
1 parent 856c82c commit 74f969a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

base/cvd/cuttlefish/io/disjoint_range_set.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ class Range {
5050
return start_ < other.start_ ||
5151
(start_ == other.start_ && end_ > other.end_);
5252
}
53-
bool operator==(const Range& other) const {
54-
return start_ == other.start_ && end_ == other.end_;
55-
}
53+
bool operator==(const Range&) const = default;
5654

5755
std::pair<uint64_t, uint64_t> AsPair() const {
5856
return std::make_pair(start_, end_);

0 commit comments

Comments
 (0)