1
Fork 0
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:
Timothy Flynn 2023-01-06 13:16:52 -05:00 committed by Linus Groh
parent 49b24b0968
commit ba97f6a0d3

View file

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