mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
CheatSearch: Remove redundant lambdas
Core::RunAsCPUThread is obsoleted by CPUThreadGuard reference already passed into the function. The nonsense lambda in CheatSearchWidget is from changes in fdb7328c73
.
This commit is contained in:
@ -301,9 +301,7 @@ void CheatSearchWidget::OnNextScanClicked()
|
||||
}
|
||||
}
|
||||
|
||||
const Cheats::SearchErrorCode error_code = [this, &guard] {
|
||||
return m_session->RunSearch(guard);
|
||||
}();
|
||||
const Cheats::SearchErrorCode error_code = m_session->RunSearch(guard);
|
||||
|
||||
if (error_code == Cheats::SearchErrorCode::Success)
|
||||
{
|
||||
|
Reference in New Issue
Block a user