diff options
author | Anatoly Serdtcev <serdtcev@maps.me> | 2019-06-03 13:10:29 +0300 |
---|---|---|
committer | Maksim Andrianov <maksimandrianov1@gmail.com> | 2019-06-03 13:13:08 +0300 |
commit | ae0021497f2cae63597432922a06641af00caa6f (patch) | |
tree | 3be61f780f3313ed3819ed343ea875f899d38a11 /generator | |
parent | 947cae3105dae88a4f5d904d3ea48129d2e072b1 (diff) |
[generator] Refactor: no std::string_view
Diffstat (limited to 'generator')
-rw-r--r-- | generator/key_value_storage.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generator/key_value_storage.cpp b/generator/key_value_storage.cpp index cd7dfc218d..b0485c0939 100644 --- a/generator/key_value_storage.cpp +++ b/generator/key_value_storage.cpp @@ -45,9 +45,9 @@ bool KeyValueStorage::ParseKeyValueLine(std::string const & line, KeyValue & res return false; } - auto jsonString = std::string_view{line.c_str() + pos + 1}; + auto jsonString = line.c_str() + pos + 1; json_error_t jsonError; - base::JSONPtr json{json_loadb(jsonString.data(), jsonString.size(), 0, &jsonError)}; + base::JSONPtr json{json_loads(jsonString, 0, &jsonError)}; if (!json) { LOG(LWARNING, ("Cannot create base::Json in line", lineNumber, ":", jsonError.text)); |