Some missing const correctness.
[libdcp.git] / src / language_tag.h
index 6b4bebe63c7d43c0fca67adce4e270aa8c29eff3..1c7faa443f562d78426e43512e28f26861d98fc9 100644 (file)
@@ -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;
                }