Commit 6a9e7ab0 authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer

Fixed the direction in which include paths are traversed

Reviewed-by: default avatarRoberto Raggi <roberto.raggi@nokia.com>
parent b71be596
...@@ -379,8 +379,8 @@ QString CppPreprocessor::tryIncludeFile(QString &fileName, IncludeType type) ...@@ -379,8 +379,8 @@ QString CppPreprocessor::tryIncludeFile(QString &fileName, IncludeType type)
} }
} }
foreach (const QString &includePath, m_includePaths) { for (int i = m_includePaths.size() - 1; i != -1; --i) {
QString path = includePath; QString path = m_includePaths.at(i);
path += QLatin1Char('/'); path += QLatin1Char('/');
path += fileName; path += fileName;
path = QDir::cleanPath(path); path = QDir::cleanPath(path);
......
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