mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 19:13:07 +01:00
Remove by-reference string_view
This commit is contained in:
@@ -53,7 +53,7 @@ namespace Json
|
||||
fs.Write(jsonOutput, jsonOutputSize);
|
||||
}
|
||||
|
||||
json_t* FromString(const std::string_view& raw)
|
||||
json_t* FromString(std::string_view raw)
|
||||
{
|
||||
json_t* root;
|
||||
json_error_t error;
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace Json
|
||||
json_t* ReadFromFile(const utf8* path, size_t maxSize = MAX_JSON_SIZE);
|
||||
void WriteToFile(const utf8* path, const json_t* json, size_t flags = 0);
|
||||
|
||||
json_t* FromString(const std::string_view& raw);
|
||||
json_t* FromString(std::string_view raw);
|
||||
} // namespace Json
|
||||
|
||||
class JsonException final : public std::runtime_error
|
||||
|
||||
Reference in New Issue
Block a user