1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:37:43 +00:00

StateMachineGenerator: Don't move() return value from actions()

With the proper warnings enabled, this gives a Wpessimizing-move warning
This commit is contained in:
Andrew Kaster 2021-08-21 19:11:40 -06:00 committed by Linus Groh
parent cdfd0bad1f
commit fb15cdcc10

View file

@ -252,7 +252,7 @@ HashTable<String> actions(const StateMachine& machine)
}
if (machine.anywhere.has_value())
do_state(machine.anywhere.value());
return move(table);
return table;
}
void generate_lookup_table(const StateMachine& machine, SourceGenerator& generator)