forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user