forked from qt-creator/qt-creator
Don't mix iterator and const_iterator
This avoids unnecessary detaches of the Qt container data.
The mismatches where detected by defining QT_STRICT_ITERATORS;
however, this define violates the ODR (causing linker errors),
and therefore is not added permanently.
Change-Id: Idd336a9c8b394214a820437ef1b92d2101f6101c
GPush-Base: 62b0848b9c
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
This commit is contained in:
@@ -1510,8 +1510,8 @@ void QmlV8DebuggerClient::setCurrentFrameDetails(const QVariant &bodyVal, const
|
||||
d->engine->gotoLocation(stackHandler->currentFrame());
|
||||
|
||||
// Expand watch data that were previously expanded
|
||||
QHash<quint64, QByteArray>::const_iterator itEnd = handlesToLookup.end();
|
||||
for (QHash<quint64, QByteArray>::const_iterator it = handlesToLookup.begin(); it != itEnd; ++it)
|
||||
QHash<quint64, QByteArray>::const_iterator itEnd = handlesToLookup.constEnd();
|
||||
for (QHash<quint64, QByteArray>::const_iterator it = handlesToLookup.constBegin(); it != itEnd; ++it)
|
||||
expandObject(it.value(), it.key());
|
||||
emit stackFrameCompleted();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user