From e6448f137ec90716b40e49a39b0b3e150ca3fda9 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 8 Mar 2023 23:13:05 +0100 Subject: [PATCH] LibWeb: Avoid an unnecessary vector copy when generating flex items --- Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));