Fix MSVC warning: member shadowing (#3392)
This commit is contained in:
parent
e95395e5f0
commit
e626e3065d
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue