Fixed #5340 (Preprocessor: not using errorLogger when reporting syntax errors)

This commit is contained in:
Alexander Mai 2014-01-12 13:15:54 +01:00 committed by Daniel Marjamäki
parent 4224f873fd
commit 86763b401c
1 changed files with 2 additions and 2 deletions

View File

@ -1635,7 +1635,7 @@ void Preprocessor::simplifyCondition(const std::map<std::string, std::string> &c
if (it != cfg.end()) {
if (!it->second.empty()) {
// Tokenize the value
Tokenizer tokenizer2(&settings,NULL);
Tokenizer tokenizer2(&settings, _errorLogger);
tokenizer2.tokenizeCondition(it->second);
// Copy the value tokens
@ -1774,7 +1774,7 @@ std::string Preprocessor::getcode(const std::string &filedata, const std::string
break;
if (line.find("=") != std::string::npos) {
Tokenizer tokenizer(_settings, NULL);
Tokenizer tokenizer(_settings, _errorLogger);
line.erase(0, sizeof("#pragma endasm"));
std::istringstream tempIstr(line);
tokenizer.tokenize(tempIstr, "");