From 89086c337cd249436a5a77340a9c2e2f8b5bd6dc Mon Sep 17 00:00:00 2001 From: Hendiadyoin1 Date: Sun, 20 Mar 2022 19:05:55 +0100 Subject: [PATCH] LibWeb: Fix constness of return type from StyleRule::block() We want to return a view to a constant object, not a constant view, which we can implicitly copy to get a mutable reference to the object. Clang-Tidy helpfully pointed this out. --- Userland/Libraries/LibWeb/CSS/Parser/StyleRule.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/CSS/Parser/StyleRule.h b/Userland/Libraries/LibWeb/CSS/Parser/StyleRule.h index 2a95bd8423..b1a255e8ac 100644 --- a/Userland/Libraries/LibWeb/CSS/Parser/StyleRule.h +++ b/Userland/Libraries/LibWeb/CSS/Parser/StyleRule.h @@ -27,7 +27,7 @@ public: ~StyleRule(); Vector const& prelude() const { return m_prelude; } - RefPtr const block() const { return m_block; } + RefPtr block() const { return m_block; } String to_string() const;