CppEditor: More migration to FilePath

Change-Id: I261b713671e00bb567f61b4ee5ecf6fa83473bff
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2022-11-24 15:21:15 +01:00
parent 9bac0d7f4c
commit 4159c4b5d5
32 changed files with 147 additions and 123 deletions

View File

@@ -29,6 +29,8 @@
// TODO implement removing include dependencies that are not longer used
// TODO refactor add/remove relations between ancestor packages into extra controller class
using namespace Utils;
namespace ModelEditor {
namespace Internal {
@@ -148,7 +150,7 @@ void UpdateIncludeDependenciesVisitor::visitMComponent(qmt::MComponent *componen
const QStringList filePaths = findFilePathOfComponent(component);
for (const QString &filePath : filePaths) {
CPlusPlus::Document::Ptr document = snapshot.document(filePath);
CPlusPlus::Document::Ptr document = snapshot.document(FilePath::fromString(filePath));
if (document) {
const QList<CPlusPlus::Document::Include> includes = document->resolvedIncludes();
for (const CPlusPlus::Document::Include &include : includes) {