forked from rosebudai/OpenRCT2-Web
Remove by-reference string_view
This commit is contained in:
1 parent
f0d1e9c320
commit
f8e3abcf4e
2 files changed
+2
-2
No files matched your search
@@ -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