Skip to content

Commit

Permalink
do not read header via stream
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed May 6, 2024
1 parent d3e465b commit 58662a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion simplecpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3522,7 +3522,8 @@ void simplecpp::preprocess(simplecpp::TokenList &output, const simplecpp::TokenL
std::ifstream f;
header2 = openHeader(f, dui, rawtok->location.file(), header, systemheader);
if (f.is_open()) {
TokenList * const tokens = new TokenList(f, files, header2, outputList);
f.close();
TokenList * const tokens = new TokenList(header2, files, outputList);
if (dui.removeComments)
tokens->removeComments();
filedata[header2] = tokens;
Expand Down

0 comments on commit 58662a1

Please sign in to comment.