Skip to content
Snippets Groups Projects
Commit ed1e6994 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Make comparison operators const

Reviewed-by: thorbjorn
parent 019904e5
No related branches found
No related tags found
No related merge requests found
...@@ -288,12 +288,12 @@ void Environment::modify(const QList<EnvironmentItem> & list) ...@@ -288,12 +288,12 @@ void Environment::modify(const QList<EnvironmentItem> & list)
*this = resultEnvironment; *this = resultEnvironment;
} }
bool Environment::operator!=(const Environment &other) bool Environment::operator!=(const Environment &other) const
{ {
return !(*this == other); return !(*this == other);
} }
bool Environment::operator==(const Environment &other) bool Environment::operator==(const Environment &other) const
{ {
return m_values == other.m_values; return m_values == other.m_values;
} }
......
...@@ -94,8 +94,8 @@ public: ...@@ -94,8 +94,8 @@ public:
static QStringList parseCombinedArgString(const QString &program); static QStringList parseCombinedArgString(const QString &program);
static QString joinArgumentList(const QStringList &arguments); static QString joinArgumentList(const QStringList &arguments);
bool operator!=(const Environment &other); bool operator!=(const Environment &other) const;
bool operator==(const Environment &other); bool operator==(const Environment &other) const;
private: private:
QMap<QString, QString> m_values; QMap<QString, QString> m_values;
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment