Commit c8cf974f authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Make operators == const

Krazy complained about those.
parent f9035b1e
......@@ -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);
}
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment