From: Steinar H. Gunderson Date: Tue, 7 May 2024 18:09:00 +0000 (+0200) Subject: Fix a dangling reference (found by GCC 14). X-Git-Url: https://git.sesse.net/?p=nageru;a=commitdiff_plain;h=HEAD Fix a dangling reference (found by GCC 14). --- diff --git a/nageru/input_mapping_dialog.cpp b/nageru/input_mapping_dialog.cpp index 2fe7e34..5f65d56 100644 --- a/nageru/input_mapping_dialog.cpp +++ b/nageru/input_mapping_dialog.cpp @@ -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;