From 18e42d3e63f7807495be8fc4c2159629a30c1144 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 26 May 2021 10:36:07 -0400 Subject: cmGeneratorExpressionNode: Constify local variable --- Source/cmGeneratorExpressionNode.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmGeneratorExpressionNode.cxx b/Source/cmGeneratorExpressionNode.cxx index 7125170..8030b64 100644 --- a/Source/cmGeneratorExpressionNode.cxx +++ b/Source/cmGeneratorExpressionNode.cxx @@ -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); } -- cgit v0.12