From 870b1613e1e6333db01185548574efb3277de060 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 24 Nov 2022 00:53:22 +0100 Subject: Some missing const correctness. --- src/language_tag.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/language_tag.h b/src/language_tag.h index 6b4bebe6..1c7faa44 100644 --- a/src/language_tag.h +++ b/src/language_tag.h @@ -68,7 +68,7 @@ public: std::string subtag; std::string description; - bool operator== (SubtagData const& other) { + bool operator== (SubtagData const& other) const { return subtag == other.subtag && description == other.description; } }; @@ -93,7 +93,7 @@ public: virtual SubtagType type () const = 0; - bool operator== (Subtag const& other) { + bool operator== (Subtag const& other) const { return _subtag == other._subtag; } -- cgit v1.2.3