Browse Source

cmRST: Move two algorithms beside each other.

Stephen Kelly 10 năm trước cách đây
mục cha
commit
8ed6ecac3f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Source/cmRST.cxx

+ 1 - 1
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());
 }