forked from qt-creator/qt-creator
Debugger: Use qAsConst with non-const Qt containers in range-loops
Change-Id: I7bd27f8317b62fe448e037d5a25e78b4c88c648d Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -1848,7 +1848,7 @@ void QmlEnginePrivate::messageReceived(const QByteArray &data)
|
||||
|
||||
int newColumn = sourceLineText.indexOf('(') + 1;
|
||||
|
||||
for (const Breakpoint &bp : v8Breakpoints) {
|
||||
for (const Breakpoint &bp : qAsConst(v8Breakpoints)) {
|
||||
QTC_ASSERT(bp, continue);
|
||||
const BreakpointParameters ¶ms = bp->requestedParameters();
|
||||
|
||||
@@ -1874,7 +1874,7 @@ void QmlEnginePrivate::messageReceived(const QByteArray &data)
|
||||
|
||||
if (inferiorStop) {
|
||||
//Update breakpoint data
|
||||
for (const Breakpoint &bp : v8Breakpoints) {
|
||||
for (const Breakpoint &bp : qAsConst(v8Breakpoints)) {
|
||||
QTC_ASSERT(bp, continue);
|
||||
if (bp->functionName().isEmpty()) {
|
||||
bp->setFunctionName(invocationText);
|
||||
@@ -1887,7 +1887,7 @@ void QmlEnginePrivate::messageReceived(const QByteArray &data)
|
||||
}
|
||||
|
||||
if (engine->state() == InferiorRunOk) {
|
||||
for (const Breakpoint &bp : v8Breakpoints) {
|
||||
for (const Breakpoint &bp : qAsConst(v8Breakpoints)) {
|
||||
QTC_ASSERT(bp, continue);
|
||||
if (breakpointsTemp.contains(bp->responseId()))
|
||||
clearBreakpoint(bp);
|
||||
|
||||
Reference in New Issue
Block a user