From fefff49d13f765c249a2419309ed16a8b425df66 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 10 Jan 2018 03:01:59 +0100 Subject: many: get rid of trailing type specifiers --- dinput/win32-joystick.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dinput') diff --git a/dinput/win32-joystick.cpp b/dinput/win32-joystick.cpp index 4adf512d..9127b6a8 100644 --- a/dinput/win32-joystick.cpp +++ b/dinput/win32-joystick.cpp @@ -111,7 +111,7 @@ std::vector win32_joy_ctx::get_joy_info() for (auto& j : joys) ret.push_back(joy_info { j.second->name, j.first }); - std::sort(ret.begin(), ret.end(), [&](const joy_info& fst, const joy_info& snd) -> bool { return fst.name < snd.name; }); + std::sort(ret.begin(), ret.end(), [&](const joy_info& fst, const joy_info& snd) { return fst.name < snd.name; }); return ret; } @@ -280,7 +280,7 @@ void win32_joy_ctx::enum_state::refresh() for (auto it = joys.begin(); it != joys.end(); ) { - if (std::find_if(all.cbegin(), all.cend(), [&](const QString& guid2) -> bool { return it->second->guid == guid2; }) == all.end()) + if (std::find_if(all.cbegin(), all.cend(), [&](const QString& guid2) { return it->second->guid == guid2; }) == all.end()) { it = joys.erase(it); } -- cgit v1.2.3