mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00: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
Notes:
github-actions[bot]
2024-11-06 09:44:39 +00:00
Author: https://github.com/yyny Commit: https://github.com/LadybirdBrowser/ladybird/commit/138135e0e6e Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2093 Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue