From 7930aca4976332eff4f1820451ebd21621fab844 Mon Sep 17 00:00:00 2001 From: firewave Date: Tue, 27 Sep 2022 13:06:15 +0200 Subject: [PATCH] `TokenList` move constructor was also calling the copy constructor --- simplecpp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simplecpp.cpp b/simplecpp.cpp index fe7c4155..4aac986f 100755 --- a/simplecpp.cpp +++ b/simplecpp.cpp @@ -242,7 +242,7 @@ simplecpp::TokenList::TokenList(const TokenList &other) : frontToken(nullptr), b } #if __cplusplus >= 201103L -simplecpp::TokenList::TokenList(TokenList &&other) : TokenList(other) +simplecpp::TokenList::TokenList(TokenList &&other) : frontToken(nullptr), backToken(nullptr), files(other.files) { *this = std::move(other); }