summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2023-03-08 23:13:05 +0100
committerAndreas Kling <kling@serenityos.org>2023-03-09 21:54:59 +0100
commite6448f137ec90716b40e49a39b0b3e150ca3fda9 (patch)
tree1d93c8f9536870eeb0e0d410d277d5d5441599bf /Userland/Libraries/LibWeb
parent8929c7b474d7e8e31efdd20ef953ff8abb024049 (diff)
downloadserenity-e6448f137ec90716b40e49a39b0b3e150ca3fda9.zip
LibWeb: Avoid an unnecessary vector copy when generating flex items
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r--Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp
index 076bd48424..892a928aca 100644
--- a/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp
+++ b/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp
@@ -331,7 +331,7 @@ void FlexFormattingContext::generate_anonymous_flex_items()
for (auto key : keys) {
auto order_bucket = order_item_bucket.get(key);
if (order_bucket.has_value()) {
- auto items = order_bucket.value();
+ auto& items = order_bucket.value();
if (is_direction_reverse()) {
for (auto item : items.in_reverse()) {
m_flex_items.append(move(item));