void InputMappingDialog::updown_clicked(int direction)
{
assert(ui->table->selectedRanges().size() == 1);
- const QTableWidgetSelectionRange &range = ui->table->selectedRanges()[0];
+ QTableWidgetSelectionRange range = ui->table->selectedRanges()[0];
int a_row = range.bottomRow();
int b_row = range.bottomRow() + direction;