From c8cf974f93d03e3a292d15b7778d2d7da0943435 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Sat, 30 Oct 2010 21:13:16 +0200 Subject: Make operators == const Krazy complained about those. --- src/libs/utils/environment.h | 2 +- src/plugins/coreplugin/icontext.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/utils/environment.h b/src/libs/utils/environment.h index bc55eb6082..5e505656d0 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 be67028fbd..b03f94bb7a 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; -- cgit v1.2.1