From 67e9c2d7a0902154facd2b4dfaac2a745abded2a Mon Sep 17 00:00:00 2001 From: hjk Date: Wed, 23 Nov 2022 15:49:49 +0100 Subject: CppEditor: Proliferate FilePath use Remove SnapShot::{find,contains}(QString) overloads and fix fallout. Change-Id: I50c415826939e09ac111f33def611c7478fa5d97 Reviewed-by: Qt CI Bot Reviewed-by: Christian Stenger Reviewed-by: Christian Kandeler --- src/plugins/cppeditor/cppcompletionassist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/cppeditor/cppcompletionassist.cpp') diff --git a/src/plugins/cppeditor/cppcompletionassist.cpp b/src/plugins/cppeditor/cppcompletionassist.cpp index b58b8d277c..8be4155bcf 100644 --- a/src/plugins/cppeditor/cppcompletionassist.cpp +++ b/src/plugins/cppeditor/cppcompletionassist.cpp @@ -1479,7 +1479,7 @@ bool InternalCppCompletionAssistProcessor::globalCompletion(Scope *currentScope) completeNamespace(b); addKeywords(); - addMacros(CppModelManager::configurationFileName(), context.snapshot()); + addMacros(CppModelManager::configurationFileName().path(), context.snapshot()); addMacros(context.thisDocument()->filePath().toString(), context.snapshot()); addSnippets(); return !m_completions.isEmpty(); -- cgit v1.2.1