diff --git a/Source/Core/Core/HW/EXI_DeviceGecko.cpp b/Source/Core/Core/HW/EXI_DeviceGecko.cpp index f9ec47dff4..95b40141a4 100644 --- a/Source/Core/Core/HW/EXI_DeviceGecko.cpp +++ b/Source/Core/Core/HW/EXI_DeviceGecko.cpp @@ -2,8 +2,6 @@ // Licensed under GPLv2 // Refer to the license.txt file included. -#include - #include "Core/Core.h" #include "Core/HW/EXI_Device.h" #include "Core/HW/EXI_DeviceGecko.h" @@ -88,7 +86,7 @@ bool GeckoSockServer::GetAvailableSock(sf::SocketTCP &sock_to_fill) recv_fifo = std::deque(); send_fifo = std::deque(); } - clientThread = std::thread(std::mem_fn(&GeckoSockServer::ClientThread), this); + clientThread = std::thread(&GeckoSockServer::ClientThread, this); client_count++; waiting_socks.pop(); sock_filled = true; diff --git a/Source/Core/Core/HW/WiimoteReal/WiimoteReal.cpp b/Source/Core/Core/HW/WiimoteReal/WiimoteReal.cpp index 177a0ee3c7..c545699e87 100644 --- a/Source/Core/Core/HW/WiimoteReal/WiimoteReal.cpp +++ b/Source/Core/Core/HW/WiimoteReal/WiimoteReal.cpp @@ -418,7 +418,7 @@ void WiimoteScanner::StartScanning() if (!m_run_thread) { m_run_thread = true; - m_scan_thread = std::thread(std::mem_fn(&WiimoteScanner::ThreadFunc), this); + m_scan_thread = std::thread(&WiimoteScanner::ThreadFunc, this); } } @@ -491,7 +491,7 @@ bool Wiimote::Connect() void Wiimote::StartThread() { m_run_thread = true; - m_wiimote_thread = std::thread(std::mem_fn(&Wiimote::ThreadFunc), this); + m_wiimote_thread = std::thread(&Wiimote::ThreadFunc, this); } void Wiimote::StopThread() diff --git a/Source/Core/Core/HW/WiimoteReal/WiimoteReal.h b/Source/Core/Core/HW/WiimoteReal/WiimoteReal.h index d84dc9da58..ff8ec6be05 100644 --- a/Source/Core/Core/HW/WiimoteReal/WiimoteReal.h +++ b/Source/Core/Core/HW/WiimoteReal/WiimoteReal.h @@ -4,7 +4,6 @@ #pragma once -#include #include #include "Common/ChunkFile.h" diff --git a/Source/Core/Core/NetPlayClient.cpp b/Source/Core/Core/NetPlayClient.cpp index f6087db050..9faa582baf 100644 --- a/Source/Core/Core/NetPlayClient.cpp +++ b/Source/Core/Core/NetPlayClient.cpp @@ -117,7 +117,7 @@ NetPlayClient::NetPlayClient(const std::string& address, const u16 port, NetPlay is_connected = true; m_selector.Add(m_socket); - m_thread = std::thread(std::mem_fn(&NetPlayClient::ThreadFunc), this); + m_thread = std::thread(&NetPlayClient::ThreadFunc, this); } } else diff --git a/Source/Core/Core/NetPlayClient.h b/Source/Core/Core/NetPlayClient.h index 8a56ae983c..cdcb6bb06e 100644 --- a/Source/Core/Core/NetPlayClient.h +++ b/Source/Core/Core/NetPlayClient.h @@ -4,7 +4,6 @@ #pragma once -#include #include #include #include diff --git a/Source/Core/Core/NetPlayServer.cpp b/Source/Core/Core/NetPlayServer.cpp index 8785f37ae3..9acf983482 100644 --- a/Source/Core/Core/NetPlayServer.cpp +++ b/Source/Core/Core/NetPlayServer.cpp @@ -35,7 +35,7 @@ NetPlayServer::NetPlayServer(const u16 port) : is_connected(false), m_is_running is_connected = true; m_do_loop = true; m_selector.Add(m_socket); - m_thread = std::thread(std::mem_fn(&NetPlayServer::ThreadFunc), this); + m_thread = std::thread(&NetPlayServer::ThreadFunc, this); m_target_buffer_size = 20; } } diff --git a/Source/Core/Core/NetPlayServer.h b/Source/Core/Core/NetPlayServer.h index fa9d805e21..d465e47452 100644 --- a/Source/Core/Core/NetPlayServer.h +++ b/Source/Core/Core/NetPlayServer.h @@ -4,7 +4,6 @@ #pragma once -#include #include #include #include