diff --git a/src/libs/utils/environment.h b/src/libs/utils/environment.h index bc55eb60823..5e505656d02 100644 --- a/src/libs/utils/environment.h +++ b/src/libs/utils/environment.h @@ -50,7 +50,7 @@ public: QString value; bool unset; - bool operator==(const EnvironmentItem &other) + bool operator==(const EnvironmentItem &other) const { return (unset == other.unset) && (name == other.name) && (value == other.value); } diff --git a/src/plugins/coreplugin/icontext.h b/src/plugins/coreplugin/icontext.h index be67028fbd8..b03f94bb7a3 100644 --- a/src/plugins/coreplugin/icontext.h +++ b/src/plugins/coreplugin/icontext.h @@ -66,7 +66,7 @@ public: void prepend(int c) { d.prepend(c); } void add(const Context &c) { d += c.d; } void add(int c) { d.append(c); } - bool operator==(const Context &c) { return d == c.d; } + bool operator==(const Context &c) const { return d == c.d; } private: QList d;