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:
@@ -142,12 +142,12 @@ void DlgCustomCommandsImp::onDescription(QTreeWidgetItem *item)
|
||||
}
|
||||
|
||||
/** Shows all commands of this category */
|
||||
void DlgCustomCommandsImp::onGroupActivated(QTreeWidgetItem* item)
|
||||
void DlgCustomCommandsImp::onGroupActivated(QTreeWidgetItem* groupItem)
|
||||
{
|
||||
if (!item)
|
||||
if (!groupItem)
|
||||
return;
|
||||
|
||||
QVariant data = item->data(0, Qt::UserRole);
|
||||
QVariant data = groupItem->data(0, Qt::UserRole);
|
||||
QString group = data.toString();
|
||||
ui->commandTreeWidget->clear();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user