diff options
| author | 2021-12-13 10:54:05 -0500 | |
|---|---|---|
| committer | 2021-12-13 10:54:43 -0500 | |
| commit | 6be730bdcdf875655973b1a39576e6933fd93eab (patch) | |
| tree | e1a9882a78ba837dd7e9bdd08e77e4259c581955 /src/input_common/drivers/tas_input.h | |
| parent | tas_input: Remove unused std::smatch variable (diff) | |
| download | yuzu-6be730bdcdf875655973b1a39576e6933fd93eab.tar.gz yuzu-6be730bdcdf875655973b1a39576e6933fd93eab.tar.xz yuzu-6be730bdcdf875655973b1a39576e6933fd93eab.zip | |
tas_input: Use u8string_view instead of u8string
Same behavior, but without the potential for extra allocations.
Diffstat (limited to 'src/input_common/drivers/tas_input.h')
| -rw-r--r-- | src/input_common/drivers/tas_input.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_common/drivers/tas_input.h b/src/input_common/drivers/tas_input.h index 7c2c4a21b..68970dcec 100644 --- a/src/input_common/drivers/tas_input.h +++ b/src/input_common/drivers/tas_input.h | |||
| @@ -150,7 +150,7 @@ private: | |||
| 150 | * Writes a TAS file from the recorded commands | 150 | * Writes a TAS file from the recorded commands |
| 151 | * @param file_name Name of the file to be written | 151 | * @param file_name Name of the file to be written |
| 152 | */ | 152 | */ |
| 153 | void WriteTasFile(std::u8string file_name); | 153 | void WriteTasFile(std::u8string_view file_name); |
| 154 | 154 | ||
| 155 | /** | 155 | /** |
| 156 | * Parses a string containing the axis values. X and Y have a range from -32767 to 32767 | 156 | * Parses a string containing the axis values. X and Y have a range from -32767 to 32767 |