Fixed the direction in which include paths are traversed

Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
Thorbjørn Lindeijer
2009-11-10 17:33:44 +01:00
parent b71be596aa
commit 6a9e7ab0f4

View File

@@ -379,8 +379,8 @@ QString CppPreprocessor::tryIncludeFile(QString &fileName, IncludeType type)
}
}
foreach (const QString &includePath, m_includePaths) {
QString path = includePath;
for (int i = m_includePaths.size() - 1; i != -1; --i) {
QString path = m_includePaths.at(i);
path += QLatin1Char('/');
path += fileName;
path = QDir::cleanPath(path);