Debugger: Code cosmetics

Sprinkling in const and ranged for.

Change-Id: I5d11d57f64140021397c23734c7373544ebebb6f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2018-05-30 15:42:51 +02:00
parent 829df213a4
commit 4feb2259d9
29 changed files with 122 additions and 122 deletions

View File

@@ -59,7 +59,7 @@ QString cdbSourcePathMapping(QString fileName,
if (fileName.isEmpty() || sourcePathMapping.isEmpty())
return fileName;
foreach (const SourcePathMapping &m, sourcePathMapping) {
for (const SourcePathMapping &m : sourcePathMapping) {
const QString &source = mode == DebuggerToSource ? m.first : m.second;
const int sourceSize = source.size();
// Map parts of the path and ensure a slash follows.