diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-01-21 15:16:43 +0100 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-01-22 15:16:40 +0100 |
commit | fe8b0330ebb4b3347e130e8a556ec2a4edfada93 (patch) | |
tree | 1fb4274ebdc48abf7fa795a0b600fc446d8a15a6 /Source/cmSourceGroup.cxx | |
parent | e68a3eadfffbdbaa00b735330aac2190583d21c1 (diff) | |
download | cmake-fe8b0330ebb4b3347e130e8a556ec2a4edfada93.tar.gz |
cmMakefile: Constify some cmSourceGroup related code.
Diffstat (limited to 'Source/cmSourceGroup.cxx')
-rw-r--r-- | Source/cmSourceGroup.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmSourceGroup.cxx b/Source/cmSourceGroup.cxx index f09976f447..dc0848c7ce 100644 --- a/Source/cmSourceGroup.cxx +++ b/Source/cmSourceGroup.cxx @@ -126,12 +126,12 @@ void cmSourceGroup::AddChild(cmSourceGroup child) } //---------------------------------------------------------------------------- -cmSourceGroup *cmSourceGroup::lookupChild(const char* name) +cmSourceGroup *cmSourceGroup::lookupChild(const char* name) const { // initializing iterators - std::vector<cmSourceGroup>::iterator iter = + std::vector<cmSourceGroup>::const_iterator iter = this->Internal->GroupChildren.begin(); - std::vector<cmSourceGroup>::iterator end = + const std::vector<cmSourceGroup>::const_iterator end = this->Internal->GroupChildren.end(); // st @@ -142,7 +142,7 @@ cmSourceGroup *cmSourceGroup::lookupChild(const char* name) // look if descenened is the one were looking for if(sgName == name) { - return &(*iter); // if it so return it + return const_cast<cmSourceGroup*>(&(*iter)); // if it so return it } } |