From ff29bb14538ed63eea001b340fad9b9cc136f150 Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Sat, 18 Sep 2021 23:18:51 -0500 Subject: [PATCH] [App] LGTM fix - rename loop variable LGTM complains that the use of "obj" as the loop variable here hides the parameter "obj". To silence the warning, rename the loop variable. --- src/App/Link.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App/Link.cpp b/src/App/Link.cpp index 7c4859fd7b..3e67cbe16c 100644 --- a/src/App/Link.cpp +++ b/src/App/Link.cpp @@ -1322,8 +1322,8 @@ void LinkBaseExtension::setLink(int index, DocumentObject *obj, auto objs = getElementListValue(); getElementListProperty()->setValue(); - for(auto obj : objs) - detachElement(obj); + for(auto thisObj : objs) + detachElement(thisObj); return; }