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/cmLocalUnixMakefileGenerator3.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/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index a838ce3..79240e1 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -185,7 +185,7 @@ GetLocalObjectFiles(std::map<std::string, LocalObjectInfo> &localObjectFiles) { continue; } - std::vector<cmSourceFile*> objectSources; + std::vector<cmSourceFile const*> objectSources; gt->GetObjectSources(objectSources); // Compute full path to object file directory for this target. std::string dir_max; @@ -194,11 +194,11 @@ GetLocalObjectFiles(std::map<std::string, LocalObjectInfo> &localObjectFiles) dir_max += this->GetTargetDirectory(*gt->Target); dir_max += "/"; // 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; bool hasSourceExtension = true; std::string objectName = this->GetObjectFileNameWithoutTarget(*sf, dir_max, |