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:
Timothy Flynn 2023-01-06 13:16:52 -05:00 committed by Linus Groh
parent 49b24b0968
commit ba97f6a0d3
Notes: sideshowbarker 2024-07-17 18:46:57 +09:00

View file

@ -140,7 +140,7 @@ public:
}
Optional(Optional&& other)
: m_value(other.m_value)
: m_value(move(other.m_value))
{
}