forked from qt-creator/qt-creator
Fix Krazy-warnings in CppTools.
- values or keys iteration - non-const ref iterator Change-Id: I6bb58793b3155243e0fbfaf33ee43ce60edea8d1 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
@@ -329,7 +329,7 @@ QString correspondingHeaderOrSource(const QString &fileName, bool *wasHeader)
|
||||
foreach (const QString &candidateFileName, candidateFileNames) {
|
||||
const QStringList projectFiles = findFilesInProject(candidateFileName, project);
|
||||
// Find the file having the most common path with fileName
|
||||
foreach (const QString projectFile, projectFiles) {
|
||||
foreach (const QString &projectFile, projectFiles) {
|
||||
int value = commonStringLength(fileName, projectFile);
|
||||
if (value > compareValue) {
|
||||
compareValue = value;
|
||||
|
||||
Reference in New Issue
Block a user