summaryrefslogtreecommitdiff
path: root/src/input_common
diff options
context:
space:
mode:
authorGravatar Lioncash2020-07-12 15:38:16 -0400
committerGravatar Lioncash2020-07-12 15:38:19 -0400
commit32b6fc40622a838d4785d5e2dbea4ee17447c362 (patch)
treecd599317271b946d8786974a4d99cb8c04e4b0a2 /src/input_common
parentgc_adapter: Silence sign conversion warnings (diff)
downloadyuzu-32b6fc40622a838d4785d5e2dbea4ee17447c362.tar.gz
yuzu-32b6fc40622a838d4785d5e2dbea4ee17447c362.tar.xz
yuzu-32b6fc40622a838d4785d5e2dbea4ee17447c362.zip
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.
Diffstat (limited to 'src/input_common')
-rw-r--r--src/input_common/gcadapter/gc_adapter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_common/gcadapter/gc_adapter.cpp b/src/input_common/gcadapter/gc_adapter.cpp
index 9fa170711..70d382bcf 100644
--- a/src/input_common/gcadapter/gc_adapter.cpp
+++ b/src/input_common/gcadapter/gc_adapter.cpp
@@ -198,7 +198,7 @@ void Adapter::StartScanThread() {
198 } 198 }
199 199
200 detect_thread_running = true; 200 detect_thread_running = true;
201 detect_thread = std::thread([=] { ScanThreadFunc(); }); 201 detect_thread = std::thread(&Adapter::ScanThreadFunc, this);
202} 202}
203 203
204void Adapter::StopScanThread() { 204void Adapter::StopScanThread() {