diff --git a/src/plugins/coreplugin/editormanager/editormanager.cpp b/src/plugins/coreplugin/editormanager/editormanager.cpp index 12157ffc071..e08fee3c563 100644 --- a/src/plugins/coreplugin/editormanager/editormanager.cpp +++ b/src/plugins/coreplugin/editormanager/editormanager.cpp @@ -429,7 +429,7 @@ void EditorManagerPrivate::init() ActionBuilder save(this, Constants::SAVE); save.setContext(editManagerContext); save.bindContextAction(&m_saveAction); - save.setOnTriggered(this, [this] { EditorManager::saveDocument(); }); + save.setOnTriggered(this, [] { EditorManager::saveDocument(); }); // Save As Action ActionBuilder saveAs(this, Constants::SAVEAS); diff --git a/src/plugins/designer/formeditorplugin.cpp b/src/plugins/designer/formeditorplugin.cpp index afbca7010bd..0f9c77b0b44 100644 --- a/src/plugins/designer/formeditorplugin.cpp +++ b/src/plugins/designer/formeditorplugin.cpp @@ -100,7 +100,7 @@ bool FormEditorPlugin::initialize([[maybe_unused]] const QStringList &arguments, wizard->setDescription(Tr::tr("Creates a Qt Designer form along with a matching class (C++ header and source file) " "for implementation purposes. You can add the form and class to an existing Qt Widget Project.")); - return {wizard}; + return wizard; }); #endif