1
0
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:
Ted John
2019-05-07 17:47:29 +01:00
parent f0d1e9c320
commit f8e3abcf4e
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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