diff --git a/src/plugins/cppeditor/cppmodelmanager.cpp b/src/plugins/cppeditor/cppmodelmanager.cpp index 0b8537925f3..34da9da3f4c 100644 --- a/src/plugins/cppeditor/cppmodelmanager.cpp +++ b/src/plugins/cppeditor/cppmodelmanager.cpp @@ -886,7 +886,7 @@ void CppModelManager::initCppTools() connect(VcsManager::instance(), &VcsManager::repositoryChanged, this, &CppModelManager::updateModifiedSourceFiles); connect(DocumentManager::instance(), &DocumentManager::filesChangedInternally, - [this](const FilePaths &filePaths) { + this, [this](const FilePaths &filePaths) { updateSourceFiles(toSet(filePaths)); });