Qt: Fix closure argument types

This commit is contained in:
Vicki Pfau 2024-07-01 20:45:26 -07:00
parent 916fa1dba0
commit 0a57aca1a5
1 changed files with 2 additions and 2 deletions

View File

@ -159,7 +159,7 @@ void SDLInputDriver::updateGamepads() {
m_gamepads.removeAt(i);
--i;
}
std::sort(m_gamepads.begin(), m_gamepads.end(), [](const auto& a, const auto b) {
std::sort(m_gamepads.begin(), m_gamepads.end(), [](const auto& a, const auto& b) {
return a->m_index < b->m_index;
});
@ -173,7 +173,7 @@ void SDLInputDriver::updateGamepads() {
}
m_gamepads.append(std::make_shared<SDLGamepad>(this, i));
}
std::sort(m_gamepads.begin(), m_gamepads.end(), [](const auto& a, const auto b) {
std::sort(m_gamepads.begin(), m_gamepads.end(), [](const auto& a, const auto& b) {
return a->m_index < b->m_index;
});
}