1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:07:45 +00:00

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.
This commit is contained in:
Hendiadyoin1 2022-03-20 19:05:55 +01:00 committed by Andreas Kling
parent 2f2efc4775
commit 89086c337c

View file

@ -27,7 +27,7 @@ public:
~StyleRule();
Vector<StyleComponentValueRule> const& prelude() const { return m_prelude; }
RefPtr<StyleBlockRule> const block() const { return m_block; }
RefPtr<StyleBlockRule const> block() const { return m_block; }
String to_string() const;