diff --git a/src/common/input.h b/src/common/input.h index cb30b72547..4030ad2e57 100644 --- a/src/common/input.h +++ b/src/common/input.h @@ -417,12 +417,12 @@ std::unique_ptr CreateDeviceFromString(const std::string& param } /** - * Create an input device from given paramters. + * Create an input device from given parameters. * @tparam InputDeviceType the type of input devices to create - * @param A ParamPackage that contains all parameters for creating the device + * @param package A ParamPackage that contains all parameters for creating the device */ template -std::unique_ptr CreateDevice(const Common::ParamPackage package) { +std::unique_ptr CreateDevice(const ParamPackage& package) { const std::string engine = package.Get("engine", "null"); const auto& factory_list = Impl::FactoryList::list; const auto pair = factory_list.find(engine);