cmGeneratorTarget: Constify the AddObject API.
The storage is already const.
This commit is contained in:
parent
cd43433de5
commit
bc51221164
|
@ -321,7 +321,8 @@ const std::string& cmGeneratorTarget::GetObjectName(cmSourceFile const* file)
|
|||
return this->Objects[file];
|
||||
}
|
||||
|
||||
void cmGeneratorTarget::AddObject(cmSourceFile *sf, std::string const&name)
|
||||
void cmGeneratorTarget::AddObject(cmSourceFile const* sf,
|
||||
std::string const&name)
|
||||
{
|
||||
this->Objects[sf] = name;
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ public:
|
|||
void GetObjectSources(std::vector<cmSourceFile*> &) const;
|
||||
const std::string& GetObjectName(cmSourceFile const* file);
|
||||
|
||||
void AddObject(cmSourceFile *sf, std::string const&name);
|
||||
void AddObject(cmSourceFile const* sf, std::string const&name);
|
||||
bool HasExplicitObjectName(cmSourceFile const* file) const;
|
||||
void AddExplicitObjectName(cmSourceFile* sf);
|
||||
|
||||
|
|
Loading…
Reference in New Issue