mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-29 10:39:28 -05:00
clang-tidy: fix performance-unnecessary-copy-initialization lints
This commit is contained in:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user