Misc: Pass string_view by value
This commit is contained in:
@ -102,10 +102,10 @@ public:
|
||||
static std::vector<std::pair<std::string, std::string>> GetControllerTypeNames();
|
||||
|
||||
/// Gets the integer code for an axis in the specified controller type.
|
||||
static std::optional<u32> GetBindIndex(ControllerType type, const std::string_view& bind_name);
|
||||
static std::optional<u32> GetBindIndex(ControllerType type, std::string_view bind_name);
|
||||
|
||||
/// Returns the vibration configuration for the specified controller type.
|
||||
static VibrationCapabilities GetControllerVibrationCapabilities(const std::string_view& type);
|
||||
static VibrationCapabilities GetControllerVibrationCapabilities(std::string_view type);
|
||||
|
||||
/// Returns general information for the specified controller type.
|
||||
static const ControllerInfo* GetControllerInfo(ControllerType type);
|
||||
|
||||
Reference in New Issue
Block a user