mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-18 08:20:44 +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:
parent
cdfd0bad1f
commit
fb15cdcc10
Notes:
sideshowbarker
2024-07-18 05:10:37 +09:00
Author: https://github.com/ADKaster
Commit: fb15cdcc10
Pull-request: https://github.com/SerenityOS/serenity/pull/9281
Reviewed-by: https://github.com/BenWiederhake
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue