astyle formatting

[ci skip]
This commit is contained in:
Daniel Marjamäki 2014-07-14 14:38:40 +02:00
parent e057e962e8
commit bf5b4d9ece
1 changed files with 1 additions and 1 deletions

View File

@ -2550,7 +2550,7 @@ void CheckOther::checkInvalidFree()
Token::Match(tok, "delete %any% +|- %any%")) { Token::Match(tok, "delete %any% +|- %any%")) {
const int varIndex = tok->strAt(1) == "(" ? 2 : const int varIndex = tok->strAt(1) == "(" ? 2 :
tok->strAt(3) == "(" ? 4 : 1; tok->strAt(3) == "(" ? 4 : 1;
const unsigned int var1 = tok->tokAt(varIndex)->varId(); const unsigned int var1 = tok->tokAt(varIndex)->varId();
const unsigned int var2 = tok->tokAt(varIndex + 2)->varId(); const unsigned int var2 = tok->tokAt(varIndex + 2)->varId();
const std::map<unsigned int, bool>::iterator alloc1 = allocatedVariables.find(var1); const std::map<unsigned int, bool>::iterator alloc1 = allocatedVariables.find(var1);