Skip to content

Commit 332bde6

Browse files
committed
removed unnecessary creation of simplecpp::Macro::tokenListDefine
1 parent e33d54d commit 332bde6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

simplecpp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1486,9 +1486,9 @@ namespace simplecpp {
14861486

14871487
class Macro {
14881488
public:
1489-
explicit Macro(std::vector<std::string> &f) : valueToken(nullptr), endToken(nullptr), files(f), tokenListDefine(new TokenList(f)), variadic(false), variadicOpt(false), valueDefinedInCode_(false) {}
1489+
explicit Macro(std::vector<std::string> &f) : valueToken(nullptr), endToken(nullptr), files(f), variadic(false), variadicOpt(false), valueDefinedInCode_(false) {}
14901490

1491-
Macro(const Token *tok, std::vector<std::string> &f) : files(f), tokenListDefine(new TokenList(f)), valueDefinedInCode_(true) {
1491+
Macro(const Token *tok, std::vector<std::string> &f) : files(f), valueDefinedInCode_(true) {
14921492
if (sameline(tok->previousSkipComments(), tok))
14931493
throw std::runtime_error("bad macro syntax");
14941494
if (tok->op != '#')

0 commit comments

Comments
 (0)