mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
Remove redundant C++ lambda parentheses (NFC) (#3433)
This commit is contained in:
@@ -90,7 +90,7 @@ WindowsMessagePump::WindowsMessagePump(
|
||||
std::function<LRESULT(HWND, UINT, WPARAM, LPARAM)> callback) {
|
||||
m_callback = callback;
|
||||
auto handle = CreateEvent(NULL, true, false, NULL);
|
||||
m_mainThread = std::thread([=]() { ThreadMain(handle); });
|
||||
m_mainThread = std::thread([=] { ThreadMain(handle); });
|
||||
auto waitResult = WaitForSingleObject(handle, 1000);
|
||||
if (waitResult == WAIT_OBJECT_0) {
|
||||
CloseHandle(handle);
|
||||
|
||||
Reference in New Issue
Block a user