Fix clang 10 warnings about unnecessary copies in range loops

Change-Id: I3b57869b5a04528518bc432b76768b01e3f53e81
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2020-05-12 13:01:44 +02:00
parent 9c1e8a99d8
commit eb96f9900a
10 changed files with 11 additions and 11 deletions

View File

@@ -337,7 +337,7 @@ void DisassemblerAgent::setContentsToDocument(const DisassemblerLines &contents)
.arg(d->location.functionName()));
const Breakpoints bps = d->engine->breakHandler()->breakpoints();
for (const Breakpoint bp : bps)
for (const Breakpoint &bp : bps)
updateBreakpointMarker(bp);
updateLocationMarker();