diff --git a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp index 20a7c39f6c..3705c5cb3e 100644 --- a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp +++ b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp @@ -2740,7 +2740,7 @@ auto Parser::extract_properties(Vector const& declarations_ return result; } -PropertyOwningCSSStyleDeclaration* Parser::convert_to_style_declaration(Vector declarations_and_at_rules) +PropertyOwningCSSStyleDeclaration* Parser::convert_to_style_declaration(Vector const& declarations_and_at_rules) { auto [properties, custom_properties] = extract_properties(declarations_and_at_rules); return PropertyOwningCSSStyleDeclaration::create(m_context.window_object(), move(properties), move(custom_properties)); @@ -5409,7 +5409,7 @@ RefPtr Parser::parse_transform_origin_value(Vector c return {}; }; - auto make_list = [](NonnullRefPtr x_value, NonnullRefPtr y_value) -> NonnullRefPtr { + auto make_list = [](NonnullRefPtr const& x_value, NonnullRefPtr const& y_value) -> NonnullRefPtr { NonnullRefPtrVector values; values.append(x_value); values.append(y_value); diff --git a/Userland/Libraries/LibWeb/CSS/Parser/Parser.h b/Userland/Libraries/LibWeb/CSS/Parser/Parser.h index 39f9681dd5..61acf39ffc 100644 --- a/Userland/Libraries/LibWeb/CSS/Parser/Parser.h +++ b/Userland/Libraries/LibWeb/CSS/Parser/Parser.h @@ -240,7 +240,7 @@ private: Vector parse_font_face_src(TokenStream&); CSSRule* convert_to_rule(NonnullRefPtr); - PropertyOwningCSSStyleDeclaration* convert_to_style_declaration(Vector declarations); + PropertyOwningCSSStyleDeclaration* convert_to_style_declaration(Vector const& declarations); Optional convert_to_style_property(Declaration const&); class Dimension {