Use a reference when possible

This commit is contained in:
Thorbjørn Lindeijer
2010-03-17 14:49:42 +01:00
parent 939562af36
commit 7f38b76083

View File

@@ -196,7 +196,7 @@ void CppPreprocessor::setIncludePaths(const QStringList &includePaths)
m_includePaths.clear();
for (int i = 0; i < includePaths.size(); ++i) {
const QString path = includePaths.at(i);
const QString &path = includePaths.at(i);
#ifdef Q_OS_DARWIN
if (i + 1 < includePaths.size() && path.endsWith(QLatin1String(".framework/Headers"))) {