tas_input: Use u8string_view instead of u8string

Same behavior, but without the potential for extra allocations.
This commit is contained in:
Lioncash 2021-12-13 10:54:05 -05:00
parent 37a8e2a67e
commit 6be730bdcd
2 changed files with 7 additions and 6 deletions

View file

@ -150,7 +150,7 @@ private:
* Writes a TAS file from the recorded commands
* @param file_name Name of the file to be written
*/
void WriteTasFile(std::u8string file_name);
void WriteTasFile(std::u8string_view file_name);
/**
* Parses a string containing the axis values. X and Y have a range from -32767 to 32767