LibRegex: Give ByteCode a copy ctor and and a move assignment operator

Previously all move assignments were actually copies. oops.
This commit is contained in:
AnotherTest 2021-04-10 08:30:48 +04:30 committed by Andreas Kling
commit 8d7bcc2476
Notes: sideshowbarker 2024-07-18 20:36:31 +09:00

View file

@ -150,8 +150,11 @@ class OpCode;
class ByteCode : public Vector<ByteCodeValueType> {
public:
ByteCode() = default;
ByteCode(const ByteCode&) = default;
virtual ~ByteCode() = default;
ByteCode& operator=(ByteCode&&) = default;
void insert_bytecode_compare_values(Vector<CompareTypeAndValuePair>&& pairs)
{
ByteCode bytecode;