Remove by-reference string_view

This commit is contained in:
Ted John committed 2019-05-12 00:51:33 +01:00
1 parent f0d1e9c320
commit f8e3abcf4e
2 files changed
+2 -2

No files matched your search

+1 -1
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;
+1 -1
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