Преглед на файлове

gc_adapter: Resolve C++20 deprecation warning

Lioncash преди 6 години
родител
ревизия
ac7e4e2cab
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/input_common/gcadapter/gc_adapter.cpp

+ 1 - 1
src/input_common/gcadapter/gc_adapter.cpp

@@ -254,7 +254,7 @@ void Adapter::GetGCEndpoint(libusb_device* device) {
                               sizeof(clear_payload), nullptr, 16);
 
     adapter_thread_running = true;
-    adapter_input_thread = std::thread([=] { Read(); }); // Read input
+    adapter_input_thread = std::thread(&Adapter::Read, this);
 }
 
 Adapter::~Adapter() {