mirror of
https://github.com/reactos/CMake.git
synced 2025-03-04 09:57:12 +00:00
clang-tidy: Fix performance-for-range-copy diagnostic in Xcode generator
Fix diagnostics that appear on macOS with clang-tidy-8.
This commit is contained in:
parent
175d8c4bf6
commit
f1f57cffc7
@ -1254,7 +1254,7 @@ bool cmGlobalXCodeGenerator::CreateXCodeTarget(
|
||||
bundleFiles[tsFlags.MacFolder].push_back(sourceFile);
|
||||
}
|
||||
}
|
||||
for (auto keySources : bundleFiles) {
|
||||
for (auto const& keySources : bundleFiles) {
|
||||
cmXCodeObject* copyFilesBuildPhase =
|
||||
this->CreateObject(cmXCodeObject::PBXCopyFilesBuildPhase);
|
||||
copyFilesBuildPhase->SetComment("Copy files");
|
||||
@ -1302,7 +1302,7 @@ bool cmGlobalXCodeGenerator::CreateXCodeTarget(
|
||||
bundleFiles[tsFlags.MacFolder].push_back(sourceFile);
|
||||
}
|
||||
}
|
||||
for (auto keySources : bundleFiles) {
|
||||
for (auto const& keySources : bundleFiles) {
|
||||
cmXCodeObject* copyFilesBuildPhase =
|
||||
this->CreateObject(cmXCodeObject::PBXCopyFilesBuildPhase);
|
||||
copyFilesBuildPhase->SetComment("Copy files");
|
||||
|
Loading…
x
Reference in New Issue
Block a user