mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15: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:
parent
2f2efc4775
commit
89086c337c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue