mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +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
Notes:
sideshowbarker
2024-07-17 18:46:57 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/ba97f6a0d3 Pull-request: https://github.com/SerenityOS/serenity/pull/16895 Reviewed-by: https://github.com/linusg
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…
Reference in a new issue