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());