Commit 78ed8855 authored by Tim Jenssen's avatar Tim Jenssen

reduce strange code to what it does

- no behavior change

Change-Id: If8ef04b9f99c976cb5fb69936e5fd02600940b2c
Reviewed-by: Tobias Hunger's avatarTobias Hunger <tobias.hunger@qt.io>
parent 3a9f9d5e
......@@ -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
......
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