forked from qt-creator/qt-creator
Beautifier: Pass context object to lambda connections
Change-Id: If1231b609e6987cbf9e26eb2f5a69da8e40e1363 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -35,7 +35,7 @@ class VersionUpdater
|
||||
public:
|
||||
VersionUpdater()
|
||||
{
|
||||
QObject::connect(&m_process, &QtcProcess::done, [this] {
|
||||
QObject::connect(&m_process, &QtcProcess::done, &m_process, [this] {
|
||||
if (m_process.result() != ProcessResult::FinishedWithSuccess)
|
||||
return;
|
||||
|
||||
|
@@ -50,7 +50,7 @@ ArtisticStyle::ArtisticStyle()
|
||||
Core::ActionManager::actionContainer(Constants::MENU_ID)->addMenu(menu);
|
||||
|
||||
connect(&m_settings, &ArtisticStyleSettings::supportedMimeTypesChanged,
|
||||
[this] { updateActions(Core::EditorManager::currentEditor()); });
|
||||
this, [this] { updateActions(Core::EditorManager::currentEditor()); });
|
||||
}
|
||||
|
||||
QString ArtisticStyle::id() const
|
||||
|
@@ -66,7 +66,7 @@ ClangFormat::ClangFormat()
|
||||
Core::ActionManager::actionContainer(Constants::MENU_ID)->addMenu(menu);
|
||||
|
||||
connect(&m_settings, &ClangFormatSettings::supportedMimeTypesChanged,
|
||||
[this] { updateActions(Core::EditorManager::currentEditor()); });
|
||||
this, [this] { updateActions(Core::EditorManager::currentEditor()); });
|
||||
}
|
||||
|
||||
QString ClangFormat::id() const
|
||||
|
@@ -53,7 +53,7 @@ Uncrustify::Uncrustify()
|
||||
Core::ActionManager::actionContainer(Constants::MENU_ID)->addMenu(menu);
|
||||
|
||||
connect(&m_settings, &UncrustifySettings::supportedMimeTypesChanged,
|
||||
[this] { updateActions(Core::EditorManager::currentEditor()); });
|
||||
this, [this] { updateActions(Core::EditorManager::currentEditor()); });
|
||||
}
|
||||
|
||||
QString Uncrustify::id() const
|
||||
|
Reference in New Issue
Block a user