summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-04 16:05:31 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-06 07:00:34 +0900
commitc0bb04994bd31a1e1c7621cdd34ec45e66cec220 (patch)
tree32343ed71032e97f4088388d96dc7d656b1ccb55
parent4e7adcf96a2f1a2467b97d84d84735c2c9af7edc (diff)
downloadsubsurface-c0bb04994bd31a1e1c7621cdd34ec45e66cec220.tar.gz
code cleanup: avoid unused argument warnings
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--desktop-widgets/tab-widgets/TabDiveInformation.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/desktop-widgets/tab-widgets/TabDiveInformation.cpp b/desktop-widgets/tab-widgets/TabDiveInformation.cpp
index fcb5a8827..dd5750ef0 100644
--- a/desktop-widgets/tab-widgets/TabDiveInformation.cpp
+++ b/desktop-widgets/tab-widgets/TabDiveInformation.cpp
@@ -266,6 +266,7 @@ void TabDiveInformation::updateData()
// From the index of the water type combo box, set the dive->salinity to an appropriate value
void TabDiveInformation::on_waterTypeCombo_activated(int index) {
+ Q_UNUSED(index)
int combobox_salinity = 0;
int dc_salinity = current_dive->dc.salinity;
switch(ui->waterTypeCombo->currentIndex()) {
@@ -397,7 +398,11 @@ void TabDiveInformation::on_watertemp_editingFinished()
if (ui->watertemp->isModified() && current_dive)
divesEdited(Command::editWaterTemp(parseTemperatureToMkelvin(ui->watertemp->text()), false));
}
-void TabDiveInformation::on_atmPressType_currentIndexChanged(int index) { updateTextBox(COMBO_CHANGED); }
+
+void TabDiveInformation::on_atmPressType_currentIndexChanged(int index) {
+ Q_UNUSED(index)
+ updateTextBox(COMBO_CHANGED);
+}
void TabDiveInformation::on_atmPressVal_editingFinished() { updateTextBox(TEXT_EDITED); }