App: [skip ci] lgtm: Declaration hides parameter

Local variable 'obj' hides a parameter of the same name.
This commit is contained in:
wmayer
2022-03-20 16:46:16 +01:00
parent 32e9984751
commit 702222b5a2

View File

@@ -4588,12 +4588,12 @@ void PropertyXLinkContainer::breakLink(App::DocumentObject *obj, bool clear) {
if(obj!=owner)
return;
for(auto &v : _Deps) {
auto obj = v.first;
if(!obj || !obj->getNameInDocument())
auto key = v.first;
if(!key || !key->getNameInDocument())
continue;
onBreakLink(obj);
if(!v.second && obj->getDocument()==owner->getDocument())
obj->_removeBackLink(owner);
onBreakLink(key);
if(!v.second && key->getDocument()==owner->getDocument())
key->_removeBackLink(owner);
}
_XLinks.clear();
_Deps.clear();