cmGeneratorTarget: Make GetSourceDepends const.
This commit is contained in:
parent
04cf50ff62
commit
dcfcd23ed5
|
@ -241,7 +241,7 @@ const char *cmGeneratorTarget::GetProperty(const std::string& prop) const
|
|||
|
||||
//----------------------------------------------------------------------------
|
||||
std::vector<cmSourceFile*> const*
|
||||
cmGeneratorTarget::GetSourceDepends(cmSourceFile* sf) const
|
||||
cmGeneratorTarget::GetSourceDepends(cmSourceFile const* sf) const
|
||||
{
|
||||
SourceEntriesType::const_iterator i = this->SourceEntries.find(sf);
|
||||
if(i != this->SourceEntries.end())
|
||||
|
|
|
@ -87,7 +87,8 @@ public:
|
|||
void LookupObjectLibraries();
|
||||
|
||||
/** Get sources that must be built before the given source. */
|
||||
std::vector<cmSourceFile*> const* GetSourceDepends(cmSourceFile* sf) const;
|
||||
std::vector<cmSourceFile*> const*
|
||||
GetSourceDepends(cmSourceFile const* sf) const;
|
||||
|
||||
/**
|
||||
* Flags for a given source file as used in this target. Typically assigned
|
||||
|
@ -121,7 +122,7 @@ public:
|
|||
private:
|
||||
friend class cmTargetTraceDependencies;
|
||||
struct SourceEntry { std::vector<cmSourceFile*> Depends; };
|
||||
typedef std::map<cmSourceFile*, SourceEntry> SourceEntriesType;
|
||||
typedef std::map<cmSourceFile const*, SourceEntry> SourceEntriesType;
|
||||
SourceEntriesType SourceEntries;
|
||||
|
||||
std::map<cmSourceFile const*, std::string> Objects;
|
||||
|
|
Loading…
Reference in New Issue