瀏覽代碼

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

Previously all move assignments were actually copies. oops.
AnotherTest 4 年之前
父節點
當前提交
8d7bcc2476
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Userland/Libraries/LibRegex/RegexByteCode.h

+ 3 - 0
Userland/Libraries/LibRegex/RegexByteCode.h

@@ -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;