This commit is contained in:
Joseph Olabisi
2025-04-18 22:19:49 +01:00
parent c35122bcb4
commit 46ae2d250f
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -186,7 +186,7 @@ array::at_path_with_wildcard(std::string_view json_path) const noexcept {
return std::vector<element>{};
}
return std::vector{result.value()};
return std::vector{std::move(result.value())};
}
inline simdjson_result<element>
@@ -217,7 +217,7 @@ inline simdjson_result<std::vector<element>> array::get_values() const noexcept
std::vector<element> result = {};
for (auto element : *this) {
result.push_back(element);
result.emplace_back(element);
}
return result;
+1 -1
View File
@@ -308,7 +308,7 @@ object::at_path_with_wildcard(std::string_view json_path) const noexcept {
// JSON_PATH
}
} else {
std::vector<element> result{this->at_path(json_path).value()};
std::vector<element> result{std::move(this->at_path(json_path).value())};
return result;
}