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
commit fb15cdcc10
Notes: sideshowbarker 2024-07-18 05:10:37 +09:00

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)