From efb93d13664dd3af66bf2a6df2d37f5c3e9d7c2a Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 14 Sep 2023 13:23:37 +0200 Subject: [PATCH] CMakeProjectManager: Remote-ify CMakeFileCompletionAssist implementation Change-Id: I18aa3d23244dd6475657f43bc18ce83298e278bf Reviewed-by: Cristian Adam --- src/plugins/cmakeprojectmanager/cmakefilecompletionassist.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/plugins/cmakeprojectmanager/cmakefilecompletionassist.cpp b/src/plugins/cmakeprojectmanager/cmakefilecompletionassist.cpp index 004dc7e092c..18bc57a4905 100644 --- a/src/plugins/cmakeprojectmanager/cmakefilecompletionassist.cpp +++ b/src/plugins/cmakeprojectmanager/cmakefilecompletionassist.cpp @@ -13,8 +13,6 @@ #include -#include - using namespace TextEditor; using namespace ProjectExplorer; @@ -39,7 +37,7 @@ IAssistProposal *CMakeFileCompletionAssist::performAsync() { Keywords kw; const Utils::FilePath &filePath = interface()->filePath(); - if (!filePath.isEmpty() && filePath.toFileInfo().isFile()) { + if (!filePath.isEmpty() && filePath.isFile()) { Project *p = ProjectManager::projectForFile(filePath); if (p && p->activeTarget()) { CMakeTool *cmake = CMakeKitAspect::cmakeTool(p->activeTarget()->kit());