summaryrefslogtreecommitdiffstats
path: root/Source/cmRST.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-29 23:01:06 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-02-20 20:36:58 (GMT)
commit8ed6ecac3fb0f832333e2d5d6f3551ab8e335d0f (patch)
treecc8c56803746254b496c267c4c4fdeca795b79ad /Source/cmRST.cxx
parentdfe49c205654a51f860507ea5d8ad133b2a4f064 (diff)
downloadCMake-8ed6ecac3fb0f832333e2d5d6f3551ab8e335d0f.zip
CMake-8ed6ecac3fb0f832333e2d5d6f3551ab8e335d0f.tar.gz
CMake-8ed6ecac3fb0f832333e2d5d6f3551ab8e335d0f.tar.bz2
cmRST: Move two algorithms beside each other.
Diffstat (limited to 'Source/cmRST.cxx')
-rw-r--r--Source/cmRST.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmRST.cxx b/Source/cmRST.cxx
index da72ab7..14e8ad9 100644
--- a/Source/cmRST.cxx
+++ b/Source/cmRST.cxx
@@ -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());
}