From 9a2689692a32904f3208a8180bd7a8526ef0bca3 Mon Sep 17 00:00:00 2001 From: Mathias Tillman Date: Wed, 9 Mar 2022 16:40:39 +0100 Subject: [PATCH] Fix lint warning about code style. --- sunshine/platform/linux/input.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sunshine/platform/linux/input.cpp b/sunshine/platform/linux/input.cpp index 3c92ba81..1f9840fb 100644 --- a/sunshine/platform/linux/input.cpp +++ b/sunshine/platform/linux/input.cpp @@ -717,9 +717,10 @@ inline void rumbleIterate(std::vector &effects, std::vector } // Copy over the received events - for (auto x = 0; x < polls_tmp.size(); ++x) { - for (auto y = 0; y < polls.size(); ++y) { - if (polls_tmp[x].fd == polls[y].el.fd) { + for(auto x = 0; x < polls_tmp.size(); ++x) { + auto pfd = polls_tmp[x].fd; + for(auto y = 0; y < polls.size(); ++y) { + if (pfd == polls[y].el.fd) { polls[y].el.revents = polls_tmp[x].revents; } }