summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2022-11-22 15:18:26 -0500
committerBen Boeckel <ben.boeckel@kitware.com>2022-11-29 12:39:46 -0500
commit4a960f7186c5bccb1d35326829fac772578b55c1 (patch)
tree3fbfd32ef4eadd3f73db454cf326bfb460ff004f
parentfc9b5193e4a05ee2db6ec3f3a2d5e0086b4eafba (diff)
downloadcmake-4a960f7186c5bccb1d35326829fac772578b55c1.tar.gz
clang-tidy: fix `performance-for-range-copy` lints
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 5cdfb75e92..e06dc9b42f 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -3426,7 +3426,7 @@ void cmVisualStudio10TargetGenerator::WriteClOptions(
// add AdditionalUsingDirectories
if (this->AdditionalUsingDirectories.count(configName) > 0) {
std::string dirs;
- for (auto u : this->AdditionalUsingDirectories[configName]) {
+ for (auto const& u : this->AdditionalUsingDirectories[configName]) {
if (!dirs.empty()) {
dirs.append(";");
}