Fixed #2546 (make CheckMemoryLeakInClass also check structures)
This commit is contained in:
parent
447d29938e
commit
514c9b9b23
|
@ -2708,7 +2708,7 @@ void CheckMemoryLeakInClass::check()
|
||||||
const Scope *scope = *i;
|
const Scope *scope = *i;
|
||||||
|
|
||||||
// only check classes and structures
|
// only check classes and structures
|
||||||
if (scope->type == Scope::eClass)
|
if (scope->isClassOrStruct())
|
||||||
{
|
{
|
||||||
std::list<Variable>::const_iterator var;
|
std::list<Variable>::const_iterator var;
|
||||||
for (var = scope->varlist.begin(); var != scope->varlist.end(); ++var)
|
for (var = scope->varlist.begin(); var != scope->varlist.end(); ++var)
|
||||||
|
|
Loading…
Reference in New Issue