mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02: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:
committed by
Sam Atkins
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 ✅
@@ -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))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user