Skip to content

Commit e3792a3

Browse files
committed
removed unnecessary creation of simplecpp::Macro::tokenListDefine
1 parent 41147bd commit e3792a3

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
@@ -1488,9 +1488,9 @@ namespace simplecpp {
14881488

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

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

0 commit comments

Comments
 (0)