Revert "Resolve CID 1357639"

This reverts commit e3b0c3a974.

It's not a proper fix. I want that Cppcheck detects this bug also. I want to keep the CID open until Cppcheck can detect it.
This commit is contained in:
Daniel Marjamäki 2016-07-21 09:52:51 +02:00
parent e3b0c3a974
commit f50f024873
1 changed files with 1 additions and 1 deletions

View File

@ -3507,7 +3507,7 @@ private:
for (tok = tokenizer.list.back(); tok; tok = tok->previous())
if (Token::simpleMatch(tok, pattern))
break;
return (tok && tok->valueType()) ? tok->valueType()->str() : std::string();
return tok->valueType() ? tok->valueType()->str() : std::string();
}
void valuetype() {