clang-tidy: fix performance-unnecessary-copy-initialization lints

This commit is contained in:
Ben Boeckel
2022-05-17 14:21:42 -04:00
committed by Brad King
parent 6ff03d463f
commit aa3649eb04
10 changed files with 20 additions and 20 deletions
+2 -2
View File
@@ -57,10 +57,10 @@ bool HandleExprCommand(std::vector<std::string> const& args,
if (argumentIndex < args.size()) {
const std::string messageHint = "sub-command EXPR ";
const std::string option = args[argumentIndex++];
std::string const& option = args[argumentIndex++];
if (option == "OUTPUT_FORMAT") {
if (argumentIndex < args.size()) {
const std::string argument = args[argumentIndex++];
std::string const& argument = args[argumentIndex++];
if (argument == "DECIMAL") {
outputFormat = NumericFormat::DECIMAL;
} else if (argument == "HEXADECIMAL") {