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;
|
||||
}
|
||||
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;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (mustDealloc)
|
||||
noDestructorError(scope, funcDestructor, mustDealloc);
|
||||
|
|
Loading…
Reference in New Issue