cmGeneratorExpressionNode: Constify local variable

This commit is contained in:
Brad King
2021-05-28 14:27:38 -04:00
parent 687326946b
commit 18e42d3e63
+1 -1
View File
@@ -1681,7 +1681,7 @@ static const struct TargetObjectsNode : public cmGeneratorExpressionNode
// Create the cmSourceFile instances in the referencing directory.
cmMakefile* mf = context->LG->GetMakefile();
for (std::string& o : objects) {
for (std::string const& o : objects) {
mf->AddTargetObject(tgtName, o);
}