mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
ENH: Made cmSourceFile::GetDepends return reference to const so dependencies can be added only by an access method in cmSourceFile.
This commit is contained in:
@@ -555,7 +555,7 @@ void CCONV cmSourceFileSetProperty(void *arg,const char *prop,
|
||||
void CCONV cmSourceFileAddDepend(void *arg, const char *depend)
|
||||
{
|
||||
cmSourceFile *sf = static_cast<cmSourceFile *>(arg);
|
||||
sf->GetDepends().push_back(depend);
|
||||
sf->AddDepend(depend);
|
||||
}
|
||||
|
||||
void CCONV cmSourceFileSetName(void *arg, const char* name, const char* dir,
|
||||
|
||||
Reference in New Issue
Block a user