Commit 7f38b760 authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

Use a reference when possible

parent 939562af
...@@ -196,7 +196,7 @@ void CppPreprocessor::setIncludePaths(const QStringList &includePaths) ...@@ -196,7 +196,7 @@ void CppPreprocessor::setIncludePaths(const QStringList &includePaths)
m_includePaths.clear(); m_includePaths.clear();
for (int i = 0; i < includePaths.size(); ++i) { for (int i = 0; i < includePaths.size(); ++i) {
const QString path = includePaths.at(i); const QString &path = includePaths.at(i);
#ifdef Q_OS_DARWIN #ifdef Q_OS_DARWIN
if (i + 1 < includePaths.size() && path.endsWith(QLatin1String(".framework/Headers"))) { if (i + 1 < includePaths.size() && path.endsWith(QLatin1String(".framework/Headers"))) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment