diff options
author | hjk <hjk@qt.io> | 2022-11-23 10:28:47 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2022-11-24 15:54:33 +0000 |
commit | 9d80e23256ea139e4ae90187bd8872e6a1fb3a75 (patch) | |
tree | ea7a5b9fe86757e9970d5ffab2d48614e84972da /src/libs/cplusplus/ResolveExpression.cpp | |
parent | 8d645a506de17b989259fd90ea4e382e06fbeab6 (diff) | |
download | qt-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/libs/cplusplus/ResolveExpression.cpp')
-rw-r--r-- | src/libs/cplusplus/ResolveExpression.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libs/cplusplus/ResolveExpression.cpp b/src/libs/cplusplus/ResolveExpression.cpp index ed0490b4e0..c3628d66b5 100644 --- a/src/libs/cplusplus/ResolveExpression.cpp +++ b/src/libs/cplusplus/ResolveExpression.cpp @@ -27,6 +27,7 @@ #include <map> using namespace CPlusPlus; +using namespace Utils; static const bool debug = qEnvironmentVariableIsSet("QTC_LOOKUPCONTEXT_DEBUG"); @@ -666,7 +667,7 @@ class ExpressionDocumentHelper public: // Set up an expression document with an external Control ExpressionDocumentHelper(const QByteArray &utf8code, Control *control) - : document(Document::create(QLatin1String("<completion>"))) + : document(Document::create(FilePath::fromPathPart(u"<completion>"))) { Control *oldControl = document->swapControl(control); delete oldControl->diagnosticClient(); |