cmRST: Use std::min where appropriate.

This commit is contained in:
Stephen Kelly 2015-02-11 23:43:55 +01:00
parent 21b0654ace
commit dfe49c2056
1 changed files with 1 additions and 4 deletions

View File

@ -463,10 +463,7 @@ void cmRST::UnindentLines(std::vector<std::string>& lines)
}
// Truncate indentation to match that on this line.
if(line.size() < indentEnd)
{
indentEnd = line.size();
}
indentEnd = std::min(indentEnd, line.size());
for(std::string::size_type j = 0; j != indentEnd; ++j)
{
if(line[j] != indentText[j])