summaryrefslogtreecommitdiffstats
path: root/Source/cmMathCommand.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2022-05-17 18:21:42 (GMT)
committerBrad King <brad.king@kitware.com>2022-05-24 13:09:44 (GMT)
commitaa3649eb0488fe9ea82c330f2c0c606bbb9d32f4 (patch)
tree0709bde281596e328aa27adb41380bbd1cd046a9 /Source/cmMathCommand.cxx
parent6ff03d463f40176389943100690cf1ca8593d739 (diff)
downloadCMake-aa3649eb0488fe9ea82c330f2c0c606bbb9d32f4.zip
CMake-aa3649eb0488fe9ea82c330f2c0c606bbb9d32f4.tar.gz
CMake-aa3649eb0488fe9ea82c330f2c0c606bbb9d32f4.tar.bz2
clang-tidy: fix `performance-unnecessary-copy-initialization` lints
Diffstat (limited to 'Source/cmMathCommand.cxx')
-rw-r--r--Source/cmMathCommand.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmMathCommand.cxx b/Source/cmMathCommand.cxx
index df9ebcf..1c0ff13 100644
--- a/Source/cmMathCommand.cxx
+++ b/Source/cmMathCommand.cxx
@@ -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") {