Merge pull request #741 from Dmitry-Me/useArrowForDereferencing
Use arrow as in surrounding code
This commit is contained in:
commit
93cb73ebcf
|
@ -1598,7 +1598,7 @@ void Preprocessor::simplifyCondition(const std::map<std::string, std::string> &c
|
||||||
if (Token::Match(tokenizer.tokens(), "( %name% )")) {
|
if (Token::Match(tokenizer.tokens(), "( %name% )")) {
|
||||||
std::map<std::string,std::string>::const_iterator var = cfg.find(tokenizer.tokens()->strAt(1));
|
std::map<std::string,std::string>::const_iterator var = cfg.find(tokenizer.tokens()->strAt(1));
|
||||||
if (var != cfg.end()) {
|
if (var != cfg.end()) {
|
||||||
const std::string &value = (*var).second;
|
const std::string &value = var->second;
|
||||||
condition = (value == "0") ? "0" : "1";
|
condition = (value == "0") ? "0" : "1";
|
||||||
} else if (match)
|
} else if (match)
|
||||||
condition = "0";
|
condition = "0";
|
||||||
|
|
Loading…
Reference in New Issue