forked from qt-creator/qt-creator
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user