Skip to content

Commit 377afdb

Browse files
committed
removed unnecessary creation of simplecpp::Macro::tokenListDefine
1 parent eb6cb69 commit 377afdb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

simplecpp.cpp

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

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

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

0 commit comments

Comments
 (0)