diff options
author | Andrew Kaster <akaster@serenityos.org> | 2021-08-21 19:11:40 -0600 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-08-28 08:44:17 +0100 |
commit | fb15cdcc107adb13cb3c1cea831d36075d6b427b (patch) | |
tree | 0aa8f0ff76196e5ee547cc4c7abddbbb9160c3fd | |
parent | cdfd0bad1fbb825e9bbaebe1c79f160b6e5d9ccd (diff) | |
download | serenity-fb15cdcc107adb13cb3c1cea831d36075d6b427b.zip |
StateMachineGenerator: Don't move() return value from actions()
With the proper warnings enabled, this gives a Wpessimizing-move warning
-rw-r--r-- | Userland/DevTools/StateMachineGenerator/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/DevTools/StateMachineGenerator/main.cpp b/Userland/DevTools/StateMachineGenerator/main.cpp index a8dd801702..4e3a903990 100644 --- a/Userland/DevTools/StateMachineGenerator/main.cpp +++ b/Userland/DevTools/StateMachineGenerator/main.cpp @@ -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) |