mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
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:
parent
192e2d5d50
commit
8d7bcc2476
Notes:
sideshowbarker
2024-07-18 20:36:31 +09:00
Author: https://github.com/alimpfard
Commit: 8d7bcc2476
Pull-request: https://github.com/SerenityOS/serenity/pull/6209
Issue: https://github.com/SerenityOS/serenity/issues/6208
1 changed files with 3 additions and 0 deletions
|
@ -150,8 +150,11 @@ class OpCode;
|
||||||
class ByteCode : public Vector<ByteCodeValueType> {
|
class ByteCode : public Vector<ByteCodeValueType> {
|
||||||
public:
|
public:
|
||||||
ByteCode() = default;
|
ByteCode() = default;
|
||||||
|
ByteCode(const ByteCode&) = default;
|
||||||
virtual ~ByteCode() = default;
|
virtual ~ByteCode() = default;
|
||||||
|
|
||||||
|
ByteCode& operator=(ByteCode&&) = default;
|
||||||
|
|
||||||
void insert_bytecode_compare_values(Vector<CompareTypeAndValuePair>&& pairs)
|
void insert_bytecode_compare_values(Vector<CompareTypeAndValuePair>&& pairs)
|
||||||
{
|
{
|
||||||
ByteCode bytecode;
|
ByteCode bytecode;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue