LibWeb: Fix accidental copy in ComponentValue constructors

These values were being copied, despite being passed in as r-value
references.
This commit is contained in:
Jonne Ransijn 2024-10-31 18:23:23 +01:00 committed by Sam Atkins
parent 5dabd468ed
commit 138135e0e6
Notes: github-actions[bot] 2024-11-06 09:44:39 +00:00

View file

@ -14,11 +14,11 @@ ComponentValue::ComponentValue(Token token)
{
}
ComponentValue::ComponentValue(Function&& function)
: m_value(function)
: m_value(move(function))
{
}
ComponentValue::ComponentValue(SimpleBlock&& block)
: m_value(block)
: m_value(move(block))
{
}