summaryrefslogtreecommitdiffhomepage
path: root/dinput/win32-joystick.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-01-10 03:01:59 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-01-10 03:37:40 +0100
commitfefff49d13f765c249a2419309ed16a8b425df66 (patch)
tree5133e2cf3de37b59614ccb1ffea7338d23ffea8a /dinput/win32-joystick.cpp
parent43dcfd6806e171955c21d18433350c4158b27faf (diff)
many: get rid of trailing type specifiers
Diffstat (limited to 'dinput/win32-joystick.cpp')
-rw-r--r--dinput/win32-joystick.cpp4
1 files changed, 2 insertions, 2 deletions
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::joy_info> 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);
}