mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-15 14:20:05 +00:00
gc_adapter: Remove deprecated usage of = in lambda captures
It's deprecated in C++20 to use = to capture the this pointer. Instead, we can simply pass this as an argument to the thread constructor.
This commit is contained in:
parent
9ce6ea648f
commit
32b6fc4062
@ -198,7 +198,7 @@ void Adapter::StartScanThread() {
|
||||
}
|
||||
|
||||
detect_thread_running = true;
|
||||
detect_thread = std::thread([=] { ScanThreadFunc(); });
|
||||
detect_thread = std::thread(&Adapter::ScanThreadFunc, this);
|
||||
}
|
||||
|
||||
void Adapter::StopScanThread() {
|
||||
|
Loading…
Reference in New Issue
Block a user