Commit f21a408b authored by Peter Kümmel's avatar Peter Kümmel Committed by Tobias Hunger
Browse files

Setter: get argument by const reference



Without the const QVariant can't be constructed inline.

Change-Id: I80ff9eb677361dca2fd104ef85facf7b69e580d7
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 3a079839
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment