diff options
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; } |
