Fixed #2546 (make CheckMemoryLeakInClass also check structures)

This commit is contained in:
Robert Reif 2011-02-04 20:17:25 +01:00 committed by Daniel Marjamäki
parent 447d29938e
commit 514c9b9b23
1 changed files with 1 additions and 1 deletions

View File

@ -2708,7 +2708,7 @@ void CheckMemoryLeakInClass::check()
const Scope *scope = *i;
// only check classes and structures
if (scope->type == Scope::eClass)
if (scope->isClassOrStruct())
{
std::list<Variable>::const_iterator var;
for (var = scope->varlist.begin(); var != scope->varlist.end(); ++var)