From 37f2d6846457b2dbeca9da911ba1b6d70d84e972 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Wed, 5 Apr 2023 10:34:32 +0200 Subject: [PATCH] CppModelManager: Pass context object into signal connection Change-Id: I6b66fbc6300597534a1498e4abbd8c3162cee73e Reviewed-by: Christian Kandeler Reviewed-by: Qt CI Bot Reviewed-by: --- src/plugins/cppeditor/cppmodelmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); });