summaryrefslogtreecommitdiff
path: root/Source/cmMakeDepend.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2005-06-22 09:06:46 -0400
committerKen Martin <ken.martin@kitware.com>2005-06-22 09:06:46 -0400
commit369308ca767367e5dd68fd783c830fd8a57ec751 (patch)
treedf00ee1c003cb33dd70fb622dfd85fd6d2a058cb /Source/cmMakeDepend.cxx
parent5fab6eebd651351ec3e712923cfa2d4b36788d74 (diff)
downloadcmake-369308ca767367e5dd68fd783c830fd8a57ec751.tar.gz
ENH: make LOCATION an computed property of the target and get rid of a bunch of const junk
Diffstat (limited to 'Source/cmMakeDepend.cxx')
-rw-r--r--Source/cmMakeDepend.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmMakeDepend.cxx b/Source/cmMakeDepend.cxx
index 077bd198e9..02795ebea4 100644
--- a/Source/cmMakeDepend.cxx
+++ b/Source/cmMakeDepend.cxx
@@ -49,7 +49,7 @@ cmMakeDepend::~cmMakeDepend()
// The pointer is kept so the cmSourceFile array can
// be updated with the depend information in the cmMakefile.
-void cmMakeDepend::SetMakefile(const cmMakefile* makefile)
+void cmMakeDepend::SetMakefile(cmMakefile* makefile)
{
m_Makefile = makefile;
@@ -264,8 +264,8 @@ cmDependInformation* cmMakeDepend::GetDependInformation(const char* file,
void cmMakeDepend::GenerateMakefileDependencies()
{
// Now create cmDependInformation objects for files in the directory
- const cmTargets &tgts = m_Makefile->GetTargets();
- for(cmTargets::const_iterator l = tgts.begin();
+ cmTargets &tgts = m_Makefile->GetTargets();
+ for(cmTargets::iterator l = tgts.begin();
l != tgts.end(); l++)
{
const std::vector<cmSourceFile*> &classes = l->second.GetSourceFiles();