From ed1e69945629c81a418bf059d16d31330df73167 Mon Sep 17 00:00:00 2001 From: Tobias Hunger <tobias.hunger@nokia.com> Date: Mon, 11 Jan 2010 10:25:15 +0100 Subject: [PATCH] Make comparison operators const Reviewed-by: thorbjorn --- src/plugins/projectexplorer/environment.cpp | 4 ++-- src/plugins/projectexplorer/environment.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/projectexplorer/environment.cpp b/src/plugins/projectexplorer/environment.cpp index 434cc99afb9..154cb7f311a 100644 --- a/src/plugins/projectexplorer/environment.cpp +++ b/src/plugins/projectexplorer/environment.cpp @@ -288,12 +288,12 @@ void Environment::modify(const QList<EnvironmentItem> & list) *this = resultEnvironment; } -bool Environment::operator!=(const Environment &other) +bool Environment::operator!=(const Environment &other) const { return !(*this == other); } -bool Environment::operator==(const Environment &other) +bool Environment::operator==(const Environment &other) const { return m_values == other.m_values; } diff --git a/src/plugins/projectexplorer/environment.h b/src/plugins/projectexplorer/environment.h index 921b6795c6a..1acec329110 100644 --- a/src/plugins/projectexplorer/environment.h +++ b/src/plugins/projectexplorer/environment.h @@ -94,8 +94,8 @@ public: static QStringList parseCombinedArgString(const QString &program); static QString joinArgumentList(const QStringList &arguments); - bool operator!=(const Environment &other); - bool operator==(const Environment &other); + bool operator!=(const Environment &other) const; + bool operator==(const Environment &other) const; private: QMap<QString, QString> m_values; }; -- GitLab