summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibSQL/Tuple.cpp
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2022-09-21 13:47:02 -0400
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2022-10-14 17:47:44 +0330
commitc0b54f18b59395c448a6365c4144e2a00a0c66b3 (patch)
tree912c60aa84ed46a2b1aea6a4d7b23ea7e1959268 /Userland/Libraries/LibSQL/Tuple.cpp
parent5f549fe5d9712bdde6d2b9aacd772f0dedc44ad0 (diff)
downloadserenity-c0b54f18b59395c448a6365c4144e2a00a0c66b3.zip
LibSQL: Copy SQL::Value instances less frequently (which may be vectors)
Diffstat (limited to 'Userland/Libraries/LibSQL/Tuple.cpp')
-rw-r--r--Userland/Libraries/LibSQL/Tuple.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibSQL/Tuple.cpp b/Userland/Libraries/LibSQL/Tuple.cpp
index 58a96fabe8..fbaa7bed7e 100644
--- a/Userland/Libraries/LibSQL/Tuple.cpp
+++ b/Userland/Libraries/LibSQL/Tuple.cpp
@@ -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);