summaryrefslogtreecommitdiff
path: root/src/plugins/cppeditor/cppsourceprocessor.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2022-11-23 10:28:47 +0100
committerhjk <hjk@qt.io>2022-11-24 15:54:33 +0000
commit9d80e23256ea139e4ae90187bd8872e6a1fb3a75 (patch)
treeea7a5b9fe86757e9970d5ffab2d48614e84972da /src/plugins/cppeditor/cppsourceprocessor.cpp
parent8d645a506de17b989259fd90ea4e382e06fbeab6 (diff)
downloadqt-creator-9d80e23256ea139e4ae90187bd8872e6a1fb3a75.tar.gz
CppEditor: Proliferate FilePath use
This includes one functional change: It drops some cleaning of the path used to create the CppDocument, which is now assumed to be done on the caller side. Change-Id: I5e2a182028e4d5b56282ad85f4a5c665f081754f Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/plugins/cppeditor/cppsourceprocessor.cpp')
-rw-r--r--src/plugins/cppeditor/cppsourceprocessor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cppeditor/cppsourceprocessor.cpp b/src/plugins/cppeditor/cppsourceprocessor.cpp
index 3f1d18c089..afb0bf79c0 100644
--- a/src/plugins/cppeditor/cppsourceprocessor.cpp
+++ b/src/plugins/cppeditor/cppsourceprocessor.cpp
@@ -445,7 +445,7 @@ void CppSourceProcessor::sourceNeeded(int line, const QString &fileName, Include
qCDebug(log) << "Parsing:" << absoluteFileName << "contents:" << contents.size() << "bytes";
- Document::Ptr document = Document::create(absoluteFileName);
+ Document::Ptr document = Document::create(Utils::FilePath::fromString(absoluteFileName));
document->setEditorRevision(editorRevision);
document->setLanguageFeatures(m_languageFeatures);
for (const QString &include : initialIncludes) {