cmGeneratorTarget: Constify the AddExplicitObjectName API.

The storage is already const.
This commit is contained in:
Stephen Kelly 2014-03-13 12:28:32 +01:00
parent bc51221164
commit 6132d979d9
2 changed files with 2 additions and 2 deletions

View File

@ -328,7 +328,7 @@ void cmGeneratorTarget::AddObject(cmSourceFile const* sf,
}
//----------------------------------------------------------------------------
void cmGeneratorTarget::AddExplicitObjectName(cmSourceFile* sf)
void cmGeneratorTarget::AddExplicitObjectName(cmSourceFile const* sf)
{
this->ExplicitObjectName.insert(sf);
}

View File

@ -37,7 +37,7 @@ public:
void AddObject(cmSourceFile const* sf, std::string const&name);
bool HasExplicitObjectName(cmSourceFile const* file) const;
void AddExplicitObjectName(cmSourceFile* sf);
void AddExplicitObjectName(cmSourceFile const* sf);
void GetResxSources(std::vector<cmSourceFile*>&) const;
void GetIDLSources(std::vector<cmSourceFile*>&) const;