forked from qt-creator/qt-creator
avoid indexed access to elements of the value map stack
this makes us independent from the random access performance of the underlying container. Change-Id: I0e655320ad607ac43ef6797e52e6179570c155f4 Reviewed-by: Daniel Teske <daniel.teske@nokia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
This commit is contained in:
@@ -82,7 +82,7 @@ QStringList ProFileEvaluator::values(const QString &variableName) const
|
||||
QStringList ProFileEvaluator::values(const QString &variableName, const ProFile *pro) const
|
||||
{
|
||||
// It makes no sense to put any kind of magic into expanding these
|
||||
const ProStringList &values = d->m_valuemapStack.at(0).value(ProKey(variableName));
|
||||
const ProStringList &values = d->m_valuemapStack.first().value(ProKey(variableName));
|
||||
QStringList ret;
|
||||
ret.reserve(values.size());
|
||||
foreach (const ProString &str, values)
|
||||
|
||||
Reference in New Issue
Block a user