LGTM: [skip ci] fix: Declaration hides parameter

A local variable hides a parameter. This may be confusing. Consider renaming one of them.
This commit is contained in:
wmayer
2020-07-27 10:57:34 +02:00
parent e727cd3754
commit 44f42a8e2c
23 changed files with 153 additions and 141 deletions

View File

@@ -71,9 +71,9 @@ PyObject* FeaturePathCompoundPy::addObject(PyObject *args)
Py::Callable method(vp.getAttr(std::string("addObject")));
// check to which method this belongs to avoid an infinite recursion
if (method.getAttr(std::string("__self__")) != Py::Object(this)) {
Py::Tuple args(1);
args[0] = Py::Object(object);
method.apply(args);
Py::Tuple arg(1);
arg[0] = Py::Object(object);
method.apply(arg);
Py_Return;
}
}
@@ -112,9 +112,9 @@ PyObject* FeaturePathCompoundPy::removeObject(PyObject *args)
Py::Callable method(vp.getAttr(std::string("removeObject")));
// check to which method this belongs to avoid an infinite recursion
if (method.getAttr(std::string("__self__")) != Py::Object(this)) {
Py::Tuple args(1);
args[0] = Py::Object(object);
method.apply(args);
Py::Tuple arg(1);
arg[0] = Py::Object(object);
method.apply(arg);
Py_Return;
}
}