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
|
const Function *Scope::getDestructor() const
|
||||||
{
|
{
|
||||||
for (const Function &function: functionList) {
|
for (const Function &f: functionList) {
|
||||||
if (function.type == Function::eDestructor)
|
if (f.type == Function::eDestructor)
|
||||||
return &function;
|
return &f;
|
||||||
}
|
}
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue