mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:47:46 +00:00
LibJS: Move the "other" optional completion in the move constructor
Otherwise, we invoke a non-trival copy. Caught by clangd.
This commit is contained in:
parent
49b24b0968
commit
ba97f6a0d3
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ public:
|
|||
}
|
||||
|
||||
Optional(Optional&& other)
|
||||
: m_value(other.m_value)
|
||||
: m_value(move(other.m_value))
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue