Minor optimisation. Don't do redundant checking
This commit is contained in:
parent
93c04efc95
commit
b71adda8b5
|
@ -638,7 +638,7 @@ void CheckClass::virtualDestructor()
|
||||||
|
|
||||||
// Find the destructor for the base class.
|
// Find the destructor for the base class.
|
||||||
const TOKEN *base = TOKEN::findmatch(_tokenizer->tokens(), "%any% ~ %var1% (", baseName);
|
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);
|
base = TOKEN::findmatch(base->next, "%any% ~ %var1% (", baseName);
|
||||||
|
|
||||||
// Check that there is a destructor..
|
// Check that there is a destructor..
|
||||||
|
|
Loading…
Reference in New Issue