From 8eddafd9d0c9a76eeecf5a83a5e855aab7bece4d Mon Sep 17 00:00:00 2001 From: Valeri Date: Mon, 17 Jan 2022 10:47:38 +0300 Subject: hid: fix std::transform call Found by static analysis with PVS-Studio. --- src/core/hid/emulated_controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/hid/emulated_controller.cpp b/src/core/hid/emulated_controller.cpp index 13edb7332..d12037b11 100644 --- a/src/core/hid/emulated_controller.cpp +++ b/src/core/hid/emulated_controller.cpp @@ -145,7 +145,7 @@ void EmulatedController::LoadDevices() { motion_devices.begin(), Common::Input::CreateDevice); std::transform(trigger_params.begin(), trigger_params.end(), trigger_devices.begin(), Common::Input::CreateDevice); - std::transform(battery_params.begin(), battery_params.begin(), battery_devices.end(), + std::transform(battery_params.begin(), battery_params.end(), battery_devices.begin(), Common::Input::CreateDevice); std::transform(output_params.begin(), output_params.end(), output_devices.begin(), Common::Input::CreateDevice); -- cgit v1.2.3