diff --git a/frontend/dialogs/OBSBasicProperties.cpp b/frontend/dialogs/OBSBasicProperties.cpp index ecf1653dd..64f864788 100644 --- a/frontend/dialogs/OBSBasicProperties.cpp +++ b/frontend/dialogs/OBSBasicProperties.cpp @@ -128,7 +128,7 @@ OBSBasicProperties::OBSBasicProperties(QWidget *parent, OBSSource source_) obs_source_inc_active(sourceClone); obs_transition_set(sourceClone, sourceA); - auto updateCallback = [=]() { + auto updateCallback = [this]() { OBSDataAutoRelease settings = obs_source_get_settings(source); obs_source_update(sourceClone, settings); @@ -167,7 +167,7 @@ void OBSBasicProperties::AddPreviewButton() playButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); - auto play = [=]() { + auto play = [this]() { OBSSource start; OBSSource end; diff --git a/frontend/settings/OBSBasicSettings.cpp b/frontend/settings/OBSBasicSettings.cpp index 8eff83dce..367fc1f1c 100644 --- a/frontend/settings/OBSBasicSettings.cpp +++ b/frontend/settings/OBSBasicSettings.cpp @@ -2405,9 +2405,9 @@ void OBSBasicSettings::LoadAudioSources() label->setMinimumSize(QSize(170, 0)); label->setAlignment(Qt::AlignRight | Qt::AlignTrailing | Qt::AlignVCenter); connect(label, &OBSSourceLabel::Removed, this, - [=]() { QMetaObject::invokeMethod(this, "ReloadAudioSources"); }); + [this]() { QMetaObject::invokeMethod(this, "ReloadAudioSources"); }); connect(label, &OBSSourceLabel::Destroyed, this, - [=]() { QMetaObject::invokeMethod(this, "ReloadAudioSources"); }); + [this]() { QMetaObject::invokeMethod(this, "ReloadAudioSources"); }); layout->addRow(label, form); return true; @@ -2839,7 +2839,7 @@ void OBSBasicSettings::LoadHotkeySettings(obs_hotkey_id ignoreKey) HotkeysChanged(); ScanDuplicateHotkeys(hotkeysLayout); }); - connect(hw, &OBSHotkeyWidget::SearchKey, this, [=](obs_key_combination_t combo) { + connect(hw, &OBSHotkeyWidget::SearchKey, this, [this](obs_key_combination_t combo) { ui->hotkeyFilterSearch->setText(""); ui->hotkeyFilterInput->HandleNewKey(combo); ui->hotkeyFilterInput->KeyChanged(combo); diff --git a/frontend/settings/OBSHotkeyEdit.cpp b/frontend/settings/OBSHotkeyEdit.cpp index 863dbb411..da8735d22 100644 --- a/frontend/settings/OBSHotkeyEdit.cpp +++ b/frontend/settings/OBSHotkeyEdit.cpp @@ -207,7 +207,7 @@ void OBSHotkeyEdit::CreateDupeIcon() { dupeIcon = addAction(settings->GetHotkeyConflictIcon(), ActionPosition::TrailingPosition); dupeIcon->setToolTip(QTStr("Basic.Settings.Hotkeys.DuplicateWarning")); - QObject::connect(dupeIcon, &QAction::triggered, this, [=] { emit SearchKey(key); }); + connect(dupeIcon, &QAction::triggered, this, [this] { emit SearchKey(key); }); dupeIcon->setVisible(false); } diff --git a/frontend/settings/OBSHotkeyWidget.cpp b/frontend/settings/OBSHotkeyWidget.cpp index 8a6feb7f3..f2fab7872 100644 --- a/frontend/settings/OBSHotkeyWidget.cpp +++ b/frontend/settings/OBSHotkeyWidget.cpp @@ -150,7 +150,7 @@ void OBSHotkeyWidget::AddEdit(obs_key_combination combo, int idx) QObject::connect(edit, &OBSHotkeyEdit::KeyChanged, this, [&](obs_key_combination) { emit KeyChanged(); }); QObject::connect(edit, &OBSHotkeyEdit::SearchKey, this, - [=](obs_key_combination combo) { emit SearchKey(combo); }); + [this](obs_key_combination combo) { emit SearchKey(combo); }); } void OBSHotkeyWidget::RemoveEdit(size_t idx, bool signal)