[hal] Replace const char* with std::string_view in Driver Station sim functions (#4532)

This commit is contained in:
Ryan Blue
2022-12-09 16:10:23 -05:00
committed by GitHub
parent 5a52b51443
commit bde383f763
11 changed files with 60 additions and 44 deletions

View File

@@ -337,7 +337,7 @@ class DriverStationSim {
* @param stick The joystick number
* @param name The value of name
*/
static void SetJoystickName(int stick, const char* name);
static void SetJoystickName(int stick, std::string_view name);
/**
* Sets the types of Axes for a joystick.
@@ -353,14 +353,14 @@ class DriverStationSim {
*
* @param message the game specific message
*/
static void SetGameSpecificMessage(const char* message);
static void SetGameSpecificMessage(std::string_view message);
/**
* Sets the event name.
*
* @param name the event name
*/
static void SetEventName(const char* name);
static void SetEventName(std::string_view name);
/**
* Sets the match type.