Skip to content
Snippets Groups Projects
Commit 7194a124 authored by Adam Wardynski's avatar Adam Wardynski
Browse files

Add const qualifier to equals

parent 5daa46b5
Branches
No related merge requests found
...@@ -23,7 +23,7 @@ public: ...@@ -23,7 +23,7 @@ public:
val_ = v; val_ = v;
} }
bool equals(const Bool& other) { bool equals(const Bool& other) const {
return val_ == other.val_; return val_ == other.val_;
} }
......
...@@ -54,7 +54,7 @@ public: ...@@ -54,7 +54,7 @@ public:
(base_->get_value() == Position::End && offset_ > 0); (base_->get_value() == Position::End && offset_ > 0);
} }
bool equals(const PositionRef& other) { bool equals(const PositionRef& other) const {
return points_nowhere() ? other.points_nowhere() return points_nowhere() ? other.points_nowhere()
: offset_ == other.offset_ && base_->equals(*other.base_); : offset_ == other.offset_ && base_->equals(*other.base_);
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment