From 90b214265809b618e7544fcadd6b655f118cf885 Mon Sep 17 00:00:00 2001 From: Jonne Ransijn Date: Thu, 31 Oct 2024 18:24:12 +0100 Subject: [PATCH] LibWeb: Make `CSS::Parser::ComponentValue` immutable `ComponentValue` instances are never mutated, so let's make them immutable to indicate that they could potentially be cached in the future. --- Userland/Libraries/LibWeb/CSS/Parser/ComponentValue.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/Userland/Libraries/LibWeb/CSS/Parser/ComponentValue.h b/Userland/Libraries/LibWeb/CSS/Parser/ComponentValue.h index d6cd79fec0f..42dc19a3bbc 100644 --- a/Userland/Libraries/LibWeb/CSS/Parser/ComponentValue.h +++ b/Userland/Libraries/LibWeb/CSS/Parser/ComponentValue.h @@ -24,12 +24,10 @@ public: ~ComponentValue(); bool is_block() const { return m_value.has(); } - SimpleBlock& block() { return m_value.get(); } SimpleBlock const& block() const { return m_value.get(); } bool is_function() const { return m_value.has(); } bool is_function(StringView name) const; - Function& function() { return m_value.get(); } Function const& function() const { return m_value.get(); } bool is_token() const { return m_value.has(); }