LibWeb/CSS: Return StringStyleValue's FlyString by reference

Most of the time this copy is completely unnecessary, so let's avoid it!
This commit is contained in:
Sam Atkins 2024-09-30 14:14:10 +01:00 committed by Sam Atkins
parent 2516297c86
commit f7f8d2fe0d
Notes: github-actions[bot] 2024-10-02 15:38:04 +00:00

View file

@ -19,7 +19,7 @@ public:
}
virtual ~StringStyleValue() override = default;
FlyString string_value() const { return m_string; }
FlyString const& string_value() const { return m_string; }
String to_string() const override { return serialize_a_string(m_string); }
bool properties_equal(StringStyleValue const& other) const { return m_string == other.m_string; }