Skip to content

Commit a431e1f

Browse files
committed
removed unnecessary creation of simplecpp::Macro::tokenListDefine
1 parent cd66696 commit a431e1f

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
@@ -1487,9 +1487,9 @@ namespace simplecpp {
14871487

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

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

0 commit comments

Comments
 (0)