From 9d80e23256ea139e4ae90187bd8872e6a1fb3a75 Mon Sep 17 00:00:00 2001 From: hjk Date: Wed, 23 Nov 2022 10:28:47 +0100 Subject: 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 Reviewed-by: Christian Kandeler Reviewed-by: Qt CI Bot --- src/libs/cplusplus/ResolveExpression.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libs/cplusplus/ResolveExpression.cpp') 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 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(""))) + : document(Document::create(FilePath::fromPathPart(u""))) { Control *oldControl = document->swapControl(control); delete oldControl->diagnosticClient(); -- cgit v1.2.1