File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -276,9 +276,9 @@ void stripTokenAhead(SmallVectorImpl<Token> &Tokens, size_t Idx) {
276276 StringRef NextTokenBody = NextToken.TokenBody ;
277277 // Cut off the leading newline which could be \n or \r\n.
278278 if (NextTokenBody.starts_with (" \r\n " ))
279- NextToken.TokenBody = std::move ( NextTokenBody.substr (2 ).str () );
279+ NextToken.TokenBody = NextTokenBody.substr (2 ).str ();
280280 else if (NextTokenBody.starts_with (" \n " ))
281- NextToken.TokenBody = std::move ( NextTokenBody.substr (1 ).str () );
281+ NextToken.TokenBody = NextTokenBody.substr (1 ).str ();
282282}
283283
284284// Adjust previous token body if there no text behind.
@@ -783,9 +783,9 @@ Template &Template::operator=(Template &&Other) noexcept {
783783 Lambdas = std::move (Other.Lambdas );
784784 SectionLambdas = std::move (Other.SectionLambdas );
785785 Escapes = std::move (Other.Escapes );
786- Tree = Other.Tree ;
787786 AstAllocator = std::move (Other.AstAllocator );
788787 RenderAllocator = std::move (Other.RenderAllocator );
788+ Tree = Other.Tree ;
789789 Other.Tree = nullptr ;
790790 }
791791 return *this ;
You can’t perform that action at this time.
0 commit comments