#6801 C: FN variable scope, FP unused value?. Fix typo from d7aa65c1fc

This commit is contained in:
amai2012 2015-06-30 08:46:30 +02:00
parent 11538c84f6
commit 0849deed01
1 changed files with 3 additions and 3 deletions

View File

@ -55,7 +55,7 @@ SymbolDatabase::SymbolDatabase(const Tokenizer *tokenizer, const Settings *setti
tok->progressValue()); tok->progressValue());
// Locate next class // Locate next class
if ((_tokenizer->isCPP() && Token::Match(tok, "class|struct|union|namespace ::| %name% {|:|::|<") && tok->strAt(-1) != "friend") if ((_tokenizer->isCPP() && Token::Match(tok, "class|struct|union|namespace ::| %name% {|:|::|<") && tok->strAt(-1) != "friend")
|| (_tokenizer->isC() && Token::Match(tok, "struct|union| %name% {"))) { || (_tokenizer->isC() && Token::Match(tok, "struct|union %name% {"))) {
const Token *tok2 = tok->tokAt(2); const Token *tok2 = tok->tokAt(2);
if (tok->strAt(1) == "::") if (tok->strAt(1) == "::")