summaryrefslogtreecommitdiff
path: root/Source/cmExportBuildFileGenerator.cxx
diff options
context:
space:
mode:
authorTushar Maheshwari <tushar27192@gmail.com>2019-09-08 14:44:55 +0530
committerTushar Maheshwari <tushar27192@gmail.com>2019-09-19 19:20:29 +0530
commit6511fa6f3309984fc10de8471017c2bb32d8d286 (patch)
treefb4b068962d37cc9763fd779f45662edc7fd1179 /Source/cmExportBuildFileGenerator.cxx
parent9b8a1f7c28deac892493b0a5548b08b2003238ea (diff)
downloadcmake-6511fa6f3309984fc10de8471017c2bb32d8d286.tar.gz
cmExportSet: default destructor
Diffstat (limited to 'Source/cmExportBuildFileGenerator.cxx')
-rw-r--r--Source/cmExportBuildFileGenerator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmExportBuildFileGenerator.cxx b/Source/cmExportBuildFileGenerator.cxx
index e9d2412a4d..08c6e7bd2b 100644
--- a/Source/cmExportBuildFileGenerator.cxx
+++ b/Source/cmExportBuildFileGenerator.cxx
@@ -283,7 +283,8 @@ void cmExportBuildFileGenerator::GetTargets(
std::vector<std::string>& targets) const
{
if (this->ExportSet) {
- for (cmTargetExport* te : *this->ExportSet->GetTargetExports()) {
+ for (std::unique_ptr<cmTargetExport> const& te :
+ this->ExportSet->GetTargetExports()) {
targets.push_back(te->TargetName);
}
return;