diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2019-12-29 10:36:48 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2019-12-30 15:55:39 (GMT) |
commit | 5444a8095da50cdf4306d33fe137baa7711f1781 (patch) | |
tree | c0ec64b08aa5fda9f7b8bb88f263ba5128a205da /Source/cmExportLibraryDependenciesCommand.cxx | |
parent | 15526d4b1072647179290fb5c2d0a3a5275415c7 (diff) | |
download | CMake-5444a8095da50cdf4306d33fe137baa7711f1781.zip CMake-5444a8095da50cdf4306d33fe137baa7711f1781.tar.gz CMake-5444a8095da50cdf4306d33fe137baa7711f1781.tar.bz2 |
cmGlobalGenerator: modernize memrory managemenbt
Diffstat (limited to 'Source/cmExportLibraryDependenciesCommand.cxx')
-rw-r--r-- | Source/cmExportLibraryDependenciesCommand.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmExportLibraryDependenciesCommand.cxx b/Source/cmExportLibraryDependenciesCommand.cxx index dfc8de5..6011ba4 100644 --- a/Source/cmExportLibraryDependenciesCommand.cxx +++ b/Source/cmExportLibraryDependenciesCommand.cxx @@ -49,11 +49,11 @@ static void FinalAction(cmMakefile& makefile, std::string const& filename, // the project. cmake* cm = makefile.GetCMakeInstance(); cmGlobalGenerator* global = cm->GetGlobalGenerator(); - const std::vector<cmMakefile*>& locals = global->GetMakefiles(); + const auto& locals = global->GetMakefiles(); std::map<std::string, std::string> libDepsOld; std::map<std::string, std::string> libDepsNew; std::map<std::string, std::string> libTypes; - for (cmMakefile* local : locals) { + for (const auto& local : locals) { for (auto const& tgt : local->GetTargets()) { // Get the current target. cmTarget const& target = tgt.second; |