summaryrefslogtreecommitdiff
path: root/src/plugins/cppeditor/cppfollowsymbolundercursor.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2022-11-24 13:05:41 +0100
committerhjk <hjk@qt.io>2022-11-30 17:27:56 +0000
commit39ffdb416ff3381515b7b4bf579acb23941cd6fc (patch)
tree544fd0f432246e397c3b851ed35d2b6d297dc661 /src/plugins/cppeditor/cppfollowsymbolundercursor.cpp
parentdc3a4f0002b2c8e4c437b2d6b3bf9e2e4be91a19 (diff)
downloadqt-creator-39ffdb416ff3381515b7b4bf579acb23941cd6fc.tar.gz
CPlusPlus: Use FilePath for resolved include paths
... and fix fallout. Change-Id: I66886e91ff476eff15db51cc024a8021e952d44d 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/cppfollowsymbolundercursor.cpp')
-rw-r--r--src/plugins/cppeditor/cppfollowsymbolundercursor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cppeditor/cppfollowsymbolundercursor.cpp b/src/plugins/cppeditor/cppfollowsymbolundercursor.cpp
index 78bff45329..9a73448bd5 100644
--- a/src/plugins/cppeditor/cppfollowsymbolundercursor.cpp
+++ b/src/plugins/cppeditor/cppfollowsymbolundercursor.cpp
@@ -624,7 +624,7 @@ void FollowSymbolUnderCursor::findLink(
const QList<Document::Include> includes = doc->resolvedIncludes();
for (const Document::Include &incl : includes) {
if (incl.line() == lineno) {
- link.targetFilePath = Utils::FilePath::fromString(incl.resolvedFileName());
+ link.targetFilePath = incl.resolvedFileName();
link.linkTextStart = beginOfToken + 1;
link.linkTextEnd = endOfToken - 1;
processLinkCallback(link);