mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-28 09:59:20 -05:00
cmGeneratorTarget: Constify cmSourceFile* in containers.
Some of them will be used with other APIs which require value_type to be cmSourceFile const*.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user