mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
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:
parent
5dabd468ed
commit
138135e0e6
|
|
@ -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))
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user