diff --git a/src/common/PJoystickHandler.hxx b/src/common/PJoystickHandler.hxx index 0d683e9aa..6a23f923b 100644 --- a/src/common/PJoystickHandler.hxx +++ b/src/common/PJoystickHandler.hxx @@ -49,7 +49,7 @@ class PhysicalJoystickHandler private: struct StickInfo { - StickInfo(const nlohmann::json map, PhysicalJoystickPtr stick = nullptr) + StickInfo(nlohmann::json map, PhysicalJoystickPtr stick = nullptr) : mapping(map), joy{std::move(stick)} {} nlohmann::json mapping;