cmRST: Move two algorithms beside each other.

This commit is contained in:
Stephen Kelly 2015-01-30 00:01:06 +01:00
parent dfe49c2056
commit 8ed6ecac3f
1 changed files with 1 additions and 1 deletions

View File

@ -490,7 +490,6 @@ void cmRST::UnindentLines(std::vector<std::string>& lines)
{
++leadingEmpty;
}
lines.erase(lines.begin(), lines.begin()+leadingEmpty);
// Drop trailing blank lines.
size_t trailingEmpty = 0;
@ -498,5 +497,6 @@ void cmRST::UnindentLines(std::vector<std::string>& lines)
{
++trailingEmpty;
}
lines.erase(lines.begin(), lines.begin()+leadingEmpty);
lines.erase(lines.end()-trailingEmpty, lines.end());
}