diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-29 23:01:06 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-02-20 20:36:58 (GMT) |
commit | 8ed6ecac3fb0f832333e2d5d6f3551ab8e335d0f (patch) | |
tree | cc8c56803746254b496c267c4c4fdeca795b79ad /Source | |
parent | dfe49c205654a51f860507ea5d8ad133b2a4f064 (diff) | |
download | CMake-8ed6ecac3fb0f832333e2d5d6f3551ab8e335d0f.zip CMake-8ed6ecac3fb0f832333e2d5d6f3551ab8e335d0f.tar.gz CMake-8ed6ecac3fb0f832333e2d5d6f3551ab8e335d0f.tar.bz2 |
cmRST: Move two algorithms beside each other.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmRST.cxx | 2 |
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()); } |