diff options
author | hjk <qthjk@ovi.com> | 2012-12-19 18:14:28 +0100 |
---|---|---|
committer | hjk <qthjk@ovi.com> | 2012-12-20 16:27:40 +0100 |
commit | e352654411f7ece8d483d793f580487ea90e6848 (patch) | |
tree | 69aec1395c1fc7f9259928a7a74b2ce7945e9298 /src/libs/cplusplus/FastPreprocessor.cpp | |
parent | c5e44f55898c57c62db25618584d3d7490076c1c (diff) | |
download | qt-creator-e352654411f7ece8d483d793f580487ea90e6848.tar.gz |
Further remove the number of QDir::cleanPath calls.
Change-Id: I638fe4291d6b682864d0a0c3938ad0066e060a3a
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'src/libs/cplusplus/FastPreprocessor.cpp')
-rw-r--r-- | src/libs/cplusplus/FastPreprocessor.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libs/cplusplus/FastPreprocessor.cpp b/src/libs/cplusplus/FastPreprocessor.cpp index 1eff7ff3b9..9fd03a889c 100644 --- a/src/libs/cplusplus/FastPreprocessor.cpp +++ b/src/libs/cplusplus/FastPreprocessor.cpp @@ -30,6 +30,7 @@ #include "FastPreprocessor.h" #include <Literals.h> #include <TranslationUnit.h> +#include <QDir> using namespace CPlusPlus; @@ -62,7 +63,9 @@ QByteArray FastPreprocessor::run(Document::Ptr newDoc, const QString &source) void FastPreprocessor::sourceNeeded(unsigned line, QString &fileName, IncludeType) { Q_ASSERT(_currentDoc); - _currentDoc->addIncludeFile(fileName, line); + // CHECKME: Is that cleanName needed? + QString cleanName = QDir::cleanPath(fileName); + _currentDoc->addIncludeFile(cleanName, line); mergeEnvironment(fileName); } |