mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 22:45:45 +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
6b6d076f51
commit
1fe8261049
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ void Adapter::StartScanThread() {
|
||||||
}
|
}
|
||||||
|
|
||||||
detect_thread_running = true;
|
detect_thread_running = true;
|
||||||
detect_thread = std::thread([=] { ScanThreadFunc(); });
|
detect_thread = std::thread(&Adapter::ScanThreadFunc, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Adapter::StopScanThread() {
|
void Adapter::StopScanThread() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue