Minor optimisation. Don't do redundant checking

This commit is contained in:
Daniel Marjamäki 2008-12-06 17:54:27 +00:00
parent 93c04efc95
commit b71adda8b5
1 changed files with 1 additions and 1 deletions

View File

@ -638,7 +638,7 @@ void CheckClass::virtualDestructor()
// Find the destructor for the base class.
const TOKEN *base = TOKEN::findmatch(_tokenizer->tokens(), "%any% ~ %var1% (", baseName);
while (base && TOKEN::Match(base, "::"))
while (TOKEN::Match(base, "::"))
base = TOKEN::findmatch(base->next, "%any% ~ %var1% (", baseName);
// Check that there is a destructor..