From 7194a12418cc7cdd3c001e68a26266574841e4e1 Mon Sep 17 00:00:00 2001 From: Adam Wardynski <award@.(win7-laptop)> Date: Fri, 19 Nov 2010 11:51:13 +0100 Subject: [PATCH] Add const qualifier to equals --- libwccl/values/bool.h | 2 +- libwccl/values/positionref.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libwccl/values/bool.h b/libwccl/values/bool.h index 23cb432..e0e05c3 100644 --- a/libwccl/values/bool.h +++ b/libwccl/values/bool.h @@ -23,7 +23,7 @@ public: val_ = v; } - bool equals(const Bool& other) { + bool equals(const Bool& other) const { return val_ == other.val_; } diff --git a/libwccl/values/positionref.h b/libwccl/values/positionref.h index d710278..30de6cc 100644 --- a/libwccl/values/positionref.h +++ b/libwccl/values/positionref.h @@ -54,7 +54,7 @@ public: (base_->get_value() == Position::End && offset_ > 0); } - bool equals(const PositionRef& other) { + bool equals(const PositionRef& other) const { return points_nowhere() ? other.points_nowhere() : offset_ == other.offset_ && base_->equals(*other.base_); } -- GitLab