summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2022-08-03 14:20:57 +0200
committerhjk <hjk@qt.io>2022-08-04 05:11:01 +0000
commitecb658e7fc5828180a592a5346cbf0ac7d6795c6 (patch)
treef5c7910fe4004fc6505cd71effec7bb2bca8dddf
parent8ae55344de7db3e29917cee4137af1e5dd68e3eb (diff)
downloadqt-creator-ecb658e7fc5828180a592a5346cbf0ac7d6795c6.tar.gz
ClangCodeModel: Avoid FilePath->QString->FilePath roundtrip
Change-Id: Ieb74aee5a6e8bfe8bdfe954d958e38da646fcb4d Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
-rw-r--r--src/plugins/clangcodemodel/clangtextmark.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/clangcodemodel/clangtextmark.cpp b/src/plugins/clangcodemodel/clangtextmark.cpp
index c9c33dc595..23baf4231c 100644
--- a/src/plugins/clangcodemodel/clangtextmark.cpp
+++ b/src/plugins/clangcodemodel/clangtextmark.cpp
@@ -276,7 +276,7 @@ Task createTask(const ClangDiagnostic &diagnostic)
return Task(taskType,
diagnosticCategoryPrefixRemoved(diagnostic.text),
- FilePath::fromString(diagnostic.location.targetFilePath.toString()),
+ diagnostic.location.targetFilePath,
diagnostic.location.targetLine,
Constants::TASK_CATEGORY_DIAGNOSTICS,
icon,