summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@digia.com>2013-06-11 18:09:51 +0200
committerTobias Hunger <tobias.hunger@digia.com>2013-06-11 18:16:42 +0200
commitf5b112c6e083c683d268bed0a6aab046ac28be96 (patch)
tree2abe80aa7583f112460a7ac2fce45847e83675a9
parent7ce368b3c0b08b522e87bc1300860a74c53449c8 (diff)
downloadqt-creator-f5b112c6e083c683d268bed0a6aab046ac28be96.tar.gz
Environment: Mark hasKey(...) method as const
Change-Id: I8f355e6ead9136741af199d08935a0f3e7446110 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
-rw-r--r--src/libs/utils/environment.cpp2
-rw-r--r--src/libs/utils/environment.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/utils/environment.cpp b/src/libs/utils/environment.cpp
index e0d03a9ab6..e0a19db274 100644
--- a/src/libs/utils/environment.cpp
+++ b/src/libs/utils/environment.cpp
@@ -391,7 +391,7 @@ QList<EnvironmentItem> 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 b0d5941ff5..46fd72a88c 100644
--- a/src/libs/utils/environment.h
+++ b/src/libs/utils/environment.h
@@ -77,7 +77,7 @@ public:
void modify(const QList<EnvironmentItem> &list);
/// Return the Environment changes necessary to modify this into the other environment.
QList<EnvironmentItem> diff(const Environment &other) const;
- bool hasKey(const QString &key);
+ bool hasKey(const QString &key) const;
QString userName() const;