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:
@@ -920,9 +920,9 @@ PyObject* Application::sAddWorkbenchHandler(PyObject * /*self*/, PyObject *args)
|
||||
if (PyObject_IsSubclass(object.ptr(), baseclass.ptr()) == 1) {
|
||||
// create an instance of this class
|
||||
name = object.getAttr(std::string("__name__"));
|
||||
Py::Tuple args;
|
||||
Py::Tuple arg;
|
||||
Py::Callable creation(object);
|
||||
object = creation.apply(args);
|
||||
object = creation.apply(arg);
|
||||
}
|
||||
else if (PyObject_IsInstance(object.ptr(), baseclass.ptr()) == 1) {
|
||||
// extract the class name of the instance
|
||||
|
||||
Reference in New Issue
Block a user