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:
@@ -368,7 +368,7 @@ void DisassemblerAgent::removeBreakpointMarker(const Breakpoint &bp)
|
||||
if (!d->document)
|
||||
return;
|
||||
|
||||
for (DisassemblerBreakpointMarker *marker : d->breakpointMarks) {
|
||||
for (DisassemblerBreakpointMarker *marker : qAsConst(d->breakpointMarks)) {
|
||||
if (marker->m_bp == bp) {
|
||||
d->breakpointMarks.removeOne(marker);
|
||||
d->document->removeMark(marker);
|
||||
|
||||
Reference in New Issue
Block a user