summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@nokia.com>2010-10-30 21:13:16 +0200
committerTobias Hunger <tobias.hunger@nokia.com>2010-11-03 12:18:10 +0100
commitc8cf974f93d03e3a292d15b7778d2d7da0943435 (patch)
tree5275b79f8f463e74718486b9edf5379ac6fa3597
parentf9035b1e9e60930ee728aba26200f7f0288c67ab (diff)
downloadqt-creator-c8cf974f93d03e3a292d15b7778d2d7da0943435.tar.gz
Make operators == const
Krazy complained about those.
-rw-r--r--src/libs/utils/environment.h2
-rw-r--r--src/plugins/coreplugin/icontext.h2
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<int> d;