From 8bf107fadc68b62134c690f0372f8cb58832eafb Mon Sep 17 00:00:00 2001 From: Phil Taylor Date: Wed, 5 Jan 2022 14:53:12 +0000 Subject: [PATCH] Fix a few compile warnings --- rigctld.cpp | 2 +- wfmain.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rigctld.cpp b/rigctld.cpp index daf779d..e7c8c46 100644 --- a/rigctld.cpp +++ b/rigctld.cpp @@ -199,7 +199,7 @@ void rigCtlClient::socketReadyRead() response.append("1"); // rigctld protocol version response.append(QString("%1").arg(rigCaps.rigctlModel)); response.append("0"); // Print something - bandType lastBand; + bandType lastBand=(bandType)-1; for (bandType band : rigCaps.bands) { if (band != lastBand) diff --git a/wfmain.cpp b/wfmain.cpp index 4ef1ecc..0984aae 100644 --- a/wfmain.cpp +++ b/wfmain.cpp @@ -1782,17 +1782,17 @@ void wfmain::on_serverEnableCheckbox_clicked(bool checked) void wfmain::on_serverControlPortText_textChanged(QString text) { - serverConfig.controlPort = ui->serverControlPortText->text().toInt(); + serverConfig.controlPort = text.toInt(); } void wfmain::on_serverCivPortText_textChanged(QString text) { - serverConfig.civPort = ui->serverCivPortText->text().toInt(); + serverConfig.civPort = text.toInt(); } void wfmain::on_serverAudioPortText_textChanged(QString text) { - serverConfig.audioPort = ui->serverAudioPortText->text().toInt(); + serverConfig.audioPort = text.toInt(); } void wfmain::on_serverRXAudioInputCombo_currentIndexChanged(int value)