summaryrefslogtreecommitdiffstats
path: root/Source/cmAlgorithms.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-03-08 13:04:54 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-03-10 23:17:30 (GMT)
commit95dd238f5cde3aef28f09a2367ac7467d064ea10 (patch)
tree817758d4f3d5168c2c825f074c3bd281d1123e5c /Source/cmAlgorithms.h
parent4448f175c8d8ee2bfce920a5e7b7e57aa923a19d (diff)
downloadCMake-95dd238f5cde3aef28f09a2367ac7467d064ea10.zip
CMake-95dd238f5cde3aef28f09a2367ac7467d064ea10.tar.gz
CMake-95dd238f5cde3aef28f09a2367ac7467d064ea10.tar.bz2
cmRemoveDuplicates: Fix iterator -> const_iterator.
Diffstat (limited to 'Source/cmAlgorithms.h')
-rw-r--r--Source/cmAlgorithms.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmAlgorithms.h b/Source/cmAlgorithms.h
index b9d7e78..f032de7 100644
--- a/Source/cmAlgorithms.h
+++ b/Source/cmAlgorithms.h
@@ -269,7 +269,7 @@ typename Range::const_iterator cmRemoveDuplicates(Range& r)
unique.reserve(r.size());
std::vector<size_t> indices;
size_t count = 0;
- const typename Range::iterator end = r.end();
+ const typename Range::const_iterator end = r.end();
for(typename Range::const_iterator it = r.begin();
it != end; ++it, ++count)
{