diff --git a/src/libs/utils/environment.cpp b/src/libs/utils/environment.cpp index e0d03a9ab67..e0a19db274d 100644 --- a/src/libs/utils/environment.cpp +++ b/src/libs/utils/environment.cpp @@ -391,7 +391,7 @@ QList Environment::diff(const Environment &other) const return result; } -bool Environment::hasKey(const QString &key) +bool Environment::hasKey(const QString &key) const { return m_values.contains(key); } diff --git a/src/libs/utils/environment.h b/src/libs/utils/environment.h index b0d5941ff51..46fd72a88c4 100644 --- a/src/libs/utils/environment.h +++ b/src/libs/utils/environment.h @@ -77,7 +77,7 @@ public: void modify(const QList &list); /// Return the Environment changes necessary to modify this into the other environment. QList diff(const Environment &other) const; - bool hasKey(const QString &key); + bool hasKey(const QString &key) const; QString userName() const;