From 8d7bcc247657ccb39ba3b7cf81d99226040c173b Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Sat, 10 Apr 2021 08:30:48 +0430 Subject: [PATCH] LibRegex: Give ByteCode a copy ctor and and a move assignment operator Previously all move assignments were actually copies. oops. --- Userland/Libraries/LibRegex/RegexByteCode.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Userland/Libraries/LibRegex/RegexByteCode.h b/Userland/Libraries/LibRegex/RegexByteCode.h index 150b67c0aa..da9706fae2 100644 --- a/Userland/Libraries/LibRegex/RegexByteCode.h +++ b/Userland/Libraries/LibRegex/RegexByteCode.h @@ -150,8 +150,11 @@ class OpCode; class ByteCode : public Vector { public: ByteCode() = default; + ByteCode(const ByteCode&) = default; virtual ~ByteCode() = default; + ByteCode& operator=(ByteCode&&) = default; + void insert_bytecode_compare_values(Vector&& pairs) { ByteCode bytecode;