Fix MSVC warning: member shadowing (#3392)

This commit is contained in:
chrchr-github 2021-08-10 22:34:13 +02:00 committed by GitHub
parent e95395e5f0
commit e626e3065d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -5347,9 +5347,9 @@ Scope *Scope::findInNestedListRecursive(const std::string & name)
const Function *Scope::getDestructor() const
{
for (const Function &function: functionList) {
if (function.type == Function::eDestructor)
return &function;
for (const Function &f: functionList) {
if (f.type == Function::eDestructor)
return &f;
}
return nullptr;
}