summaryrefslogtreecommitdiffstats
path: root/src/input_common/touch_from_button.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/input_common/touch_from_button.cpp')
-rw-r--r--src/input_common/touch_from_button.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input_common/touch_from_button.cpp b/src/input_common/touch_from_button.cpp
index 5226e70df..ffbe4f2ed 100644
--- a/src/input_common/touch_from_button.cpp
+++ b/src/input_common/touch_from_button.cpp
@@ -26,8 +26,8 @@ public:
}
Input::TouchStatus GetStatus() const override {
- Input::TouchStatus touch_status = {};
- for (size_t id = 0; id < map.size() && id < touch_status.size(); id++) {
+ Input::TouchStatus touch_status{};
+ for (std::size_t id = 0; id < map.size() && id < touch_status.size(); ++id) {
const bool state = std::get<0>(map[id])->GetStatus();
if (state) {
const float x = static_cast<float>(std::get<1>(map[id])) /