1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-21 23:55:13 -05:00

Fix lint warnings

This commit is contained in:
srcejon 2024-10-08 20:55:31 +01:00
parent 56c162fd7d
commit ffdcf89f7c
3 changed files with 7 additions and 10 deletions

View File

@ -246,7 +246,7 @@ bool RemoteTCPSinkGUI::handleMessage(const Message& message)
}
else if (DSPSignalNotification::match(message))
{
DSPSignalNotification& cfg = (DSPSignalNotification&) message;
const DSPSignalNotification& cfg = (const DSPSignalNotification&) message;
if (cfg.getSampleRate() != m_basebandSampleRate) {
m_bwAvg.reset();
}
@ -260,7 +260,7 @@ bool RemoteTCPSinkGUI::handleMessage(const Message& message)
}
else if (RemoteTCPSink::MsgSendMessage::match(message))
{
RemoteTCPSink::MsgSendMessage& msg = (RemoteTCPSink::MsgSendMessage&) message;
const RemoteTCPSink::MsgSendMessage& msg = (const RemoteTCPSink::MsgSendMessage&) message;
QString address = QString("%1:%2").arg(msg.getAddress().toString()).arg(msg.getPort());
QString callsign = msg.getCallsign();
QString text = msg.getText();
@ -279,7 +279,7 @@ bool RemoteTCPSinkGUI::handleMessage(const Message& message)
}
else if (RemoteTCPSink::MsgError::match(message))
{
RemoteTCPSink::MsgError& msg = (RemoteTCPSink::MsgError&) message;
const RemoteTCPSink::MsgError& msg = (const RemoteTCPSink::MsgError&) message;
QString error = msg.getError();
QMessageBox::warning(this, "RemoteTCPSink", error, QMessageBox::Ok);
return true;

View File

@ -37,7 +37,7 @@ public:
const QStringList& getSettingsKeys() const { return m_settingsKeys; };
private slots:
void accept();
void accept() override;
void on_browseCertificate_clicked();
void on_browseKey_clicked();
void on_addIP_clicked();

View File

@ -2016,7 +2016,6 @@ bool DeviceOpener::open(const QString hwType, int direction, const QStringList&
}
int nbSamplingDevices = DeviceEnumerator::instance()->getNbRxSamplingDevices();
bool found = false;
for (int i = 0; i < nbSamplingDevices; i++)
{
@ -2032,9 +2031,7 @@ bool DeviceOpener::open(const QString hwType, int direction, const QStringList&
return true;
}
if (!found)
{
qCritical() << "DeviceOpener::open: Failed to find device with hwType " << hwType;
return false;
}
qWarning() << "DeviceOpener::open: Failed to find device with hwType " << hwType;
return false;
}