Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes from static analysis #4391

Merged
merged 12 commits into from
Feb 6, 2024
Prev Previous commit
Next Next commit
Avoid one more place where auto create unnecessary copy
  • Loading branch information
vlstill committed Feb 6, 2024
commit 15166ee047ff9cdce575bd8ba67fcca0eac01762
2 changes: 1 addition & 1 deletion lib/options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ void Util::Options::usage() {
}

labelLen += 3;
for (auto o : optionOrder) {
for (const auto &o : optionOrder) {
auto option = get(options, o);
CHECK_NULL(option);
size_t len = strlen(o);
Expand Down