From e74b94daa62bb93f693017111963a82fe46f82c5 Mon Sep 17 00:00:00 2001 From: thrust26 Date: Mon, 21 Dec 2020 18:06:33 +0100 Subject: [PATCH] ...and removed the const too --- src/common/PJoystickHandler.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;