Skip to content

Commit 61fb424

Browse files
authored
There are a couple of extra value() that should not be there (simdjson#1242)
1 parent a503e02 commit 61fb424

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/ondemand/ondemand_basictests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -939,14 +939,14 @@ namespace twitter_tests {
939939
*/
940940
uint64_t id_val = image["id"].get_uint64();
941941
std::cout << "id = " <<id_val << std::endl;
942-
auto id_string = std::string_view(image["id_str"].value());
942+
auto id_string = std::string_view(image["id_str"]);
943943
std::cout << "id_string = " << id_string << std::endl;
944944
auto sizes = image["sizes"].get_object();
945945
for (auto size : sizes) {
946946
/**
947947
* We want to know the key that describes the size.
948948
*/
949-
std::string_view raw_size_key_v = size.unescaped_key().value();
949+
std::string_view raw_size_key_v = size.unescaped_key();
950950
std::cout << "Type of image size = " << raw_size_key_v << std::endl;
951951
ondemand::object size_value = size.value();
952952
int64_t width = size_value["w"];

0 commit comments

Comments
 (0)