diff options
author | Jack Lloyd <[email protected]> | 2022-02-04 18:05:34 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2022-02-06 08:52:16 -0500 |
commit | fbb7c5fba1bcde2460dda48c1423a23b3b3062bf (patch) | |
tree | c0b9cd348067f0813d80e9b1b23b149d1a0d0af2 /src/cli/utils.cpp | |
parent | 3c8d79246c7c5c57296d3165922b58aad401e5e3 (diff) |
Fix clang-tidy performance warnings
Diffstat (limited to 'src/cli/utils.cpp')
-rw-r--r-- | src/cli/utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli/utils.cpp b/src/cli/utils.cpp index 9b800cf76..03f3169b0 100644 --- a/src/cli/utils.cpp +++ b/src/cli/utils.cpp @@ -125,7 +125,7 @@ class Has_Command final : public Command const std::string cmd = get_arg("cmd"); bool exists = false; - for(auto registered_cmd : Command::registered_cmds()) + for(const auto& registered_cmd : Command::registered_cmds()) { if(cmd == registered_cmd) { |