reduce strange code to what it does

- no behavior change

Change-Id: If8ef04b9f99c976cb5fb69936e5fd02600940b2c
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Tim Jenssen
2017-06-06 17:50:17 +02:00
parent 3a9f9d5eac
commit 78ed88552c

View File

@@ -355,11 +355,7 @@ Environment::const_iterator Environment::constEnd() const
Environment::const_iterator Environment::constFind(const QString &name) const
{
QMap<QString, QString>::const_iterator it = m_values.constFind(name);
if (it == m_values.constEnd())
return constEnd();
else
return it;
return m_values.constFind(name);
}
int Environment::size() const