Codechange: replace char* with std::string_view

This commit is contained in:
Rubidium
2025-04-27 18:31:42 +02:00
committed by rubidium42
parent e1859df1c0
commit 49ef3eee13
25 changed files with 53 additions and 49 deletions
+1 -1
View File
@@ -323,7 +323,7 @@ CargoTypes TranslateRefitMask(uint32_t refit_mask)
* @param error_location Function name for grf error messages
* @param[out] index If \a base_pointer is valid, \a index is assigned to the matching price; else it is left unchanged
*/
void ConvertTTDBasePrice(uint32_t base_pointer, const char *error_location, Price *index)
void ConvertTTDBasePrice(uint32_t base_pointer, std::string_view error_location, Price *index)
{
/* Special value for 'none' */
if (base_pointer == 0) {