diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-03-12 22:06:05 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-03-13 14:27:23 (GMT) |
commit | 9ad804ac7be18efb92040434808f89174586b13d (patch) | |
tree | f439c944534f4ad1e01a5ec7810369b67b36de81 /Source/cmGlobalNinjaGenerator.cxx | |
parent | c725bb3cbd51edd4043f81d01b7a01bbd42adb2f (diff) | |
download | CMake-9ad804ac7be18efb92040434808f89174586b13d.zip CMake-9ad804ac7be18efb92040434808f89174586b13d.tar.gz CMake-9ad804ac7be18efb92040434808f89174586b13d.tar.bz2 |
cmGeneratorTarget: Constify cmSourceFile* in containers.
Some of them will be used with other APIs which require value_type
to be cmSourceFile const*.
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-rw-r--r-- | Source/cmGlobalNinjaGenerator.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx index 686414d..e9c31e9 100644 --- a/Source/cmGlobalNinjaGenerator.cxx +++ b/Source/cmGlobalNinjaGenerator.cxx @@ -634,14 +634,14 @@ std::string cmGlobalNinjaGenerator::GetEditCacheCommand() const // TODO: Refactor to combine with cmGlobalUnixMakefileGenerator3 impl. void cmGlobalNinjaGenerator::ComputeTargetObjects(cmGeneratorTarget* gt) const { - std::vector<cmSourceFile*> objectSources; + std::vector<cmSourceFile const*> objectSources; gt->GetObjectSources(objectSources); // Compute the name of each object file. - for(std::vector<cmSourceFile*>::iterator + for(std::vector<cmSourceFile const*>::iterator si = objectSources.begin(); si != objectSources.end(); ++si) { - cmSourceFile* sf = *si; + cmSourceFile const* sf = *si; std::string objectName = gt->LocalGenerator ->GetObjectFileNameWithoutTarget(*sf, gt->ObjectDirectory); gt->AddObject(sf, objectName); |