summaryrefslogtreecommitdiff
path: root/Source/cmExportSet.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmExportSet.cxx')
-rw-r--r--Source/cmExportSet.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmExportSet.cxx b/Source/cmExportSet.cxx
index a93667994e..a6fa186c7f 100644
--- a/Source/cmExportSet.cxx
+++ b/Source/cmExportSet.cxx
@@ -13,9 +13,8 @@ cmExportSet::~cmExportSet()
void cmExportSet::Compute(cmLocalGenerator* lg)
{
- for (std::vector<cmTargetExport*>::iterator it = this->TargetExports.begin();
- it != this->TargetExports.end(); ++it) {
- (*it)->Target = lg->FindGeneratorTargetToUse((*it)->TargetName);
+ for (cmTargetExport* tgtExport : this->TargetExports) {
+ tgtExport->Target = lg->FindGeneratorTargetToUse(tgtExport->TargetName);
}
}