diff options
author | Peter Kümmel <syntheticpp@gmx.net> | 2012-09-24 16:23:13 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@digia.com> | 2012-09-24 16:54:49 +0200 |
commit | f21a408b51c6473414b9733dd0b05715181f0162 (patch) | |
tree | 9c121484dd26a53769965867321ab569a9ec0e81 /src | |
parent | 3a0798395f3fc6f4a687e87648164f93cf508946 (diff) | |
download | qt-creator-f21a408b51c6473414b9733dd0b05715181f0162.tar.gz |
Setter: get argument by const reference
Without the const QVariant can't be constructed inline.
Change-Id: I80ff9eb677361dca2fd104ef85facf7b69e580d7
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/projectexplorer/project.cpp | 2 | ||||
-rw-r--r-- | src/plugins/projectexplorer/project.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/projectexplorer/project.cpp b/src/plugins/projectexplorer/project.cpp index b53bb0435b..46a998dba0 100644 --- a/src/plugins/projectexplorer/project.cpp +++ b/src/plugins/projectexplorer/project.cpp @@ -421,7 +421,7 @@ QVariant Project::namedSettings(const QString &name) const return d->m_pluginSettings.value(name); } -void Project::setNamedSettings(const QString &name, QVariant &value) +void Project::setNamedSettings(const QString &name, const QVariant &value) { if (value.isNull()) d->m_pluginSettings.remove(name); diff --git a/src/plugins/projectexplorer/project.h b/src/plugins/projectexplorer/project.h index 70d97260c3..a254d8cea3 100644 --- a/src/plugins/projectexplorer/project.h +++ b/src/plugins/projectexplorer/project.h @@ -119,7 +119,7 @@ public: virtual Core::Context projectLanguage() const; QVariant namedSettings(const QString &name) const; - void setNamedSettings(const QString &name, QVariant &value); + void setNamedSettings(const QString &name, const QVariant &value); virtual bool needsConfiguration() const; virtual void configureAsExampleProject(const QStringList &platforms); |