Skip to content

Commit

Permalink
Tokenizer: made ErrorLogger parameter mandatory in constructor [ski…
Browse files Browse the repository at this point in the history
…p ci]
  • Loading branch information
firewave committed Mar 11, 2024
1 parent 6d38140 commit 111292c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/importproject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ namespace {

// TODO: evaluate without using the Tokenizer
const Settings s;
Tokenizer tokenizer(s);
Tokenizer tokenizer(s, nullptr);
std::istringstream istr(c);
tokenizer.tokenize(istr,"vcxproj.c");
for (const Token *tok = tokenizer.tokens(); tok; tok = tok->next()) {
Expand Down
2 changes: 1 addition & 1 deletion lib/tokenize.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class CPPCHECKLIB Tokenizer {
friend class TemplateSimplifier;

public:
explicit Tokenizer(const Settings & settings, ErrorLogger *errorLogger = nullptr, const Preprocessor *preprocessor = nullptr);
explicit Tokenizer(const Settings & settings, ErrorLogger *errorLogger, const Preprocessor *preprocessor = nullptr);
~Tokenizer();

void setTimerResults(TimerResults *tr) {
Expand Down

0 comments on commit 111292c

Please sign in to comment.