forked from qt-creator/qt-creator
GenericProject: Add some const
Change-Id: I9c839a82b99b5d5bb859ae6f478ac553cae443f6 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
committed by
Tobias Hunger
parent
a7b77ab323
commit
bd7f09ac02
@@ -147,7 +147,7 @@ static QStringList readLines(const QString &absoluteFileName)
|
||||
QTextStream stream(&file);
|
||||
|
||||
forever {
|
||||
QString line = stream.readLine();
|
||||
const QString line = stream.readLine();
|
||||
if (line.isNull())
|
||||
break;
|
||||
|
||||
@@ -194,7 +194,7 @@ bool GenericProject::addFiles(const QStringList &filePaths)
|
||||
QSet<QString> toAdd;
|
||||
|
||||
foreach (const QString &filePath, filePaths) {
|
||||
QString directory = QFileInfo(filePath).absolutePath();
|
||||
const QString directory = QFileInfo(filePath).absolutePath();
|
||||
if (!includes.contains(directory) && !toAdd.contains(directory))
|
||||
toAdd << directory;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user