Break the loop once a match is found
This commit is contained in:
parent
895910b769
commit
1a2b770bfd
|
@ -383,8 +383,10 @@ void CheckClass::copyconstructors()
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
const Variable *var = it->second->variable();
|
const Variable *var = it->second->variable();
|
||||||
if (var && var->typeScope() && var->typeScope()->functionList.empty() && var->type()->derivedFrom.empty())
|
if (var && var->typeScope() && var->typeScope()->functionList.empty() && var->type()->derivedFrom.empty()) {
|
||||||
mustDealloc = it->second;
|
mustDealloc = it->second;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (mustDealloc)
|
if (mustDealloc)
|
||||||
noDestructorError(scope, funcDestructor, mustDealloc);
|
noDestructorError(scope, funcDestructor, mustDealloc);
|
||||||
|
|
Loading…
Reference in New Issue