forked from qt-creator/qt-creator
Clean up some lambdas
Change-Id: Id947c0935b1aa4579e1c64d3e510db41103fbe27 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -560,7 +560,7 @@ void EditorWidget::addCompiler(const std::shared_ptr<SourceSettings> &sourceSett
|
||||
sourceSettings->compilers.removeItem(compilerSettings->shared_from_this());
|
||||
});
|
||||
|
||||
connect(compiler, &CompilerWidget::gotFocus, this, [this]() {
|
||||
connect(compiler, &CompilerWidget::gotFocus, this, [this] {
|
||||
m_actionHandler.updateCurrentEditor();
|
||||
});
|
||||
}
|
||||
@@ -600,7 +600,7 @@ void EditorWidget::addSourceEditor(const std::shared_ptr<SourceSettings> &source
|
||||
setupHelpWidget();
|
||||
});
|
||||
|
||||
connect(sourceEditor, &SourceEditorWidget::gotFocus, this, [this]() {
|
||||
connect(sourceEditor, &SourceEditorWidget::gotFocus, this, [this] {
|
||||
m_actionHandler.updateCurrentEditor();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user