Commit f0aa5cda authored by Oswald Buddenhagen's avatar Oswald Buddenhagen

Utils::Environment::find() => constFind()

it really is already that
parent 0a509409
......@@ -270,7 +270,7 @@ Environment::const_iterator Environment::constEnd() const
return m_values.constEnd();
}
Environment::const_iterator Environment::find(const QString &name)
Environment::const_iterator Environment::constFind(const QString &name) const
{
QMap<QString, QString>::const_iterator it = m_values.constFind(name);
if (it == m_values.constEnd())
......@@ -304,7 +304,7 @@ void Environment::modify(const QList<EnvironmentItem> & list)
end = value.indexOf('}', i);
if (end != -1) {
const QString &name = value.mid(i+2, end-i-2);
Environment::const_iterator it = find(name);
Environment::const_iterator it = constFind(name);
if (it != constEnd())
value.replace(i, end-i+1, it.value());
}
......
......@@ -83,12 +83,12 @@ public:
void clear();
int size() const;
Environment::const_iterator find(const QString &name);
QString key(Environment::const_iterator it) const;
QString value(Environment::const_iterator it) const;
Environment::const_iterator constBegin() const;
Environment::const_iterator constEnd() const;
Environment::const_iterator constFind(const QString &name) const;
QString searchInPath(const QString &executable,
const QStringList & additionalDirs = QStringList()) const;
......
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