mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-21 15:51:47 -05:00
Fix lint warnings
This commit is contained in:
parent
56c162fd7d
commit
ffdcf89f7c
@ -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;
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user