mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
nit
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user