diff options
-rw-r--r-- | Source/cmAlgorithms.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmAlgorithms.h b/Source/cmAlgorithms.h index f00e1c0..43023db 100644 --- a/Source/cmAlgorithms.h +++ b/Source/cmAlgorithms.h @@ -249,8 +249,7 @@ typename Range::const_iterator cmRemoveIndices(Range& r, InputRange const& rem) prevRem = *remIt; writer = ContainerAlgorithms::RemoveN(writer, pivot, count); } - writer = ContainerAlgorithms::RemoveN(writer, r.end(), count); - return writer; + return ContainerAlgorithms::RemoveN(writer, r.end(), count); } template<typename Range, typename MatchRange> |