diff options
author | hjk <hjk@qt.io> | 2022-11-23 16:28:12 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2022-11-25 09:23:39 +0000 |
commit | 40ba25b69120def09ff6c25cda77fcb0a377417d (patch) | |
tree | f888b375895e58ebea14098e85631bc473f17583 /src/libs/cplusplus/DependencyTable.cpp | |
parent | ef9777412269f5b5cde862d133816373ef1ee57d (diff) | |
download | qt-creator-40ba25b69120def09ff6c25cda77fcb0a377417d.tar.gz |
CPlusPlus: Return FilePaths from Document::includedFile
... and fix fallout.
Change-Id: Ieaad57700fa48d0c4a0dd9bf2c284315579b9473
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/libs/cplusplus/DependencyTable.cpp')
-rw-r--r-- | src/libs/cplusplus/DependencyTable.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/libs/cplusplus/DependencyTable.cpp b/src/libs/cplusplus/DependencyTable.cpp index 60d97256af..fa31818e99 100644 --- a/src/libs/cplusplus/DependencyTable.cpp +++ b/src/libs/cplusplus/DependencyTable.cpp @@ -6,7 +6,9 @@ #include <QDebug> #include <QFutureInterface> -using namespace CPlusPlus; +using namespace Utils; + +namespace CPlusPlus { Utils::FilePaths DependencyTable::filesDependingOn(const Utils::FilePath &fileName) const { @@ -55,10 +57,10 @@ void DependencyTable::build(QFutureInterfaceBase &futureInterface, const Snapsho if (Document::Ptr doc = snapshot.document(fileName)) { QBitArray bitmap(files.size()); QList<int> directIncludes; - const QStringList documentIncludes = doc->includedFiles(); + const FilePaths documentIncludes = doc->includedFiles(); - for (const QString &includedFile : documentIncludes) { - int index = fileIndex.value(Utils::FilePath::fromString(includedFile)); + for (const FilePath &includedFile : documentIncludes) { + int index = fileIndex.value(includedFile); if (index == -1) continue; @@ -104,3 +106,5 @@ void DependencyTable::build(QFutureInterfaceBase &futureInterface, const Snapsho return; } while (changed); } + +} // CPlusPlus |