diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-11-24 00:53:22 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-11-24 00:53:22 +0100 |
| commit | 870b1613e1e6333db01185548574efb3277de060 (patch) | |
| tree | 6161c38f69411c4d21f13e08fba9896a24b68bd0 /src | |
| parent | cbdb96e4bb93c409fca737b1a5141ab3d48fb30e (diff) | |
Some missing const correctness.
Diffstat (limited to 'src')
| -rw-r--r-- | src/language_tag.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |
