mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibSQL: Copy SQL::Value instances less frequently (which may be vectors)
This commit is contained in:
parent
5f549fe5d9
commit
c0b54f18b5
Notes:
sideshowbarker
2024-07-17 05:48:37 +09:00
Author: https://github.com/trflynn89
Commit: c0b54f18b5
Pull-request: https://github.com/SerenityOS/serenity/pull/15312
Reviewed-by: https://github.com/alimpfard
3 changed files with 10 additions and 8 deletions
|
@ -231,8 +231,8 @@ int Tuple::compare(Tuple const& other) const
|
|||
int Tuple::match(Tuple const& other) const
|
||||
{
|
||||
auto other_index = 0u;
|
||||
for (auto& part : *other.descriptor()) {
|
||||
auto other_value = other[other_index];
|
||||
for (auto const& part : *other.descriptor()) {
|
||||
auto const& other_value = other[other_index];
|
||||
if (other_value.is_null())
|
||||
return 0;
|
||||
auto my_index = index_of(part.name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue