]> git.sesse.net Git - nageru/commitdiff
Fix a dangling reference (found by GCC 14). master
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 7 May 2024 18:09:00 +0000 (20:09 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 7 May 2024 18:09:00 +0000 (20:09 +0200)
nageru/input_mapping_dialog.cpp

index 2fe7e34ce87e8b2bb6130c05c61480bf878648ed..5f65d566e624578f9099bb3efbd414325af0e0db 100644 (file)
@@ -274,7 +274,7 @@ void InputMappingDialog::remove_clicked()
 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;