From e626e3065d14cb1babad04d3327a0fc00a9e5c45 Mon Sep 17 00:00:00 2001 From: chrchr-github <78114321+chrchr-github@users.noreply.github.com> Date: Tue, 10 Aug 2021 22:34:13 +0200 Subject: [PATCH] Fix MSVC warning: member shadowing (#3392) --- lib/symboldatabase.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index 3e394d443..4e72c6964 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -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; }