mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:28:12 +00:00
LibRegex: Remove return value for setters
This commit is contained in:
parent
1fb4471506
commit
cd49fb0229
2 changed files with 5 additions and 11 deletions
|
@ -151,7 +151,9 @@ ALWAYS_INLINE OpCode* ByteCode::get_opcode_by_id(OpCodeId id) const
|
|||
if (id > OpCodeId::Last)
|
||||
return nullptr;
|
||||
|
||||
return const_cast<OpCode*>(s_opcodes[(u32)id]->set_bytecode(*const_cast<ByteCode*>(this)));
|
||||
auto* opcode = &*s_opcodes[(u32)id];
|
||||
opcode->set_bytecode(*const_cast<ByteCode*>(this));
|
||||
return opcode;
|
||||
}
|
||||
|
||||
OpCode* ByteCode::get_opcode(MatchState& state) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue