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:
@@ -438,7 +438,6 @@ PyObject* GeometryPy::getExtensions(PyObject *args)
|
||||
|
||||
if(p) {
|
||||
// we create a python copy and add it to the list
|
||||
Py::Tuple args(size_t(0));
|
||||
PyObject* cpy = static_cast<GeometryExtensionPy *>(p->getPyObject())->copy(Py::new_reference_to(Py::Tuple(size_t(0))));
|
||||
|
||||
PyList_SetItem( list, i, cpy);
|
||||
|
||||
@@ -698,13 +698,13 @@ void DlgFilletEdges::changeEvent(QEvent *e)
|
||||
}
|
||||
}
|
||||
|
||||
void DlgFilletEdges::on_shapeObject_activated(int index)
|
||||
void DlgFilletEdges::on_shapeObject_activated(int itemPos)
|
||||
{
|
||||
d->object = 0;
|
||||
QStandardItemModel *model = qobject_cast<QStandardItemModel*>(ui->treeView->model());
|
||||
model->removeRows(0, model->rowCount());
|
||||
|
||||
QByteArray name = ui->shapeObject->itemData(index).toByteArray();
|
||||
QByteArray name = ui->shapeObject->itemData(itemPos).toByteArray();
|
||||
App::Document* doc = App::GetApplication().getActiveDocument();
|
||||
if (!doc)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user