mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-01-25 06:55:55 -05:00
Fix lint warnings.
This commit is contained in:
parent
6f8b5a2e2e
commit
ebe4f4feba
@ -143,7 +143,7 @@ bool InmarsatDemod::handleMessage(const Message& cmd)
|
||||
{
|
||||
if (MsgConfigureInmarsatDemod::match(cmd))
|
||||
{
|
||||
MsgConfigureInmarsatDemod& cfg = (MsgConfigureInmarsatDemod&) cmd;
|
||||
const MsgConfigureInmarsatDemod& cfg = (const MsgConfigureInmarsatDemod&) cmd;
|
||||
qDebug() << "InmarsatDemod::handleMessage: MsgConfigureInmarsatDemod";
|
||||
applySettings(cfg.getSettings(), cfg.getSettingsKeys(), cfg.getForce());
|
||||
|
||||
@ -151,7 +151,7 @@ bool InmarsatDemod::handleMessage(const Message& cmd)
|
||||
}
|
||||
else if (DSPSignalNotification::match(cmd))
|
||||
{
|
||||
DSPSignalNotification& notif = (DSPSignalNotification&) cmd;
|
||||
const DSPSignalNotification& notif = (const DSPSignalNotification&) cmd;
|
||||
m_basebandSampleRate = notif.getSampleRate();
|
||||
m_centerFrequency = notif.getCenterFrequency();
|
||||
// Forward to the sink
|
||||
@ -168,7 +168,7 @@ bool InmarsatDemod::handleMessage(const Message& cmd)
|
||||
else if (MainCore::MsgPacket::match(cmd))
|
||||
{
|
||||
// Forward to GUI
|
||||
MainCore::MsgPacket& report = (MainCore::MsgPacket&)cmd;
|
||||
const MainCore::MsgPacket& report = (const MainCore::MsgPacket&)cmd;
|
||||
if (getMessageQueueToGUI())
|
||||
{
|
||||
MainCore::MsgPacket *msg = new MainCore::MsgPacket(report);
|
||||
|
||||
@ -68,7 +68,7 @@ public:
|
||||
{ }
|
||||
};
|
||||
|
||||
InmarsatDemod(DeviceAPI *deviceAPI);
|
||||
explicit InmarsatDemod(DeviceAPI *deviceAPI);
|
||||
virtual ~InmarsatDemod();
|
||||
virtual void destroy() { delete this; }
|
||||
virtual void setDeviceAPI(DeviceAPI *deviceAPI);
|
||||
|
||||
@ -64,7 +64,7 @@ public:
|
||||
{ }
|
||||
};
|
||||
|
||||
InmarsatDemodBaseband(InmarsatDemod *packetDemod);
|
||||
explicit InmarsatDemodBaseband(InmarsatDemod *packetDemod);
|
||||
~InmarsatDemodBaseband();
|
||||
void reset();
|
||||
void startWork();
|
||||
|
||||
@ -45,7 +45,7 @@
|
||||
|
||||
#include "inmarsatdemod.h"
|
||||
|
||||
MultipartMessage::MultipartMessage(int id, std::map<std::string, std::string> params, const QDateTime& dateTime) :
|
||||
MultipartMessage::MultipartMessage(int id, std::map<std::string, std::string>& params, const QDateTime& dateTime) :
|
||||
m_id(id),
|
||||
m_icon(nullptr),
|
||||
m_latitude(0.0f),
|
||||
@ -54,7 +54,7 @@ MultipartMessage::MultipartMessage(int id, std::map<std::string, std::string> pa
|
||||
update(params, dateTime);
|
||||
}
|
||||
|
||||
void MultipartMessage::update(std::map<std::string, std::string> params, const QDateTime& dateTime)
|
||||
void MultipartMessage::update(std::map<std::string, std::string>& params, const QDateTime& dateTime)
|
||||
{
|
||||
m_dateTime = dateTime;
|
||||
m_service = QString::fromStdString(params["serviceCodeAndAddressName"]);
|
||||
@ -1324,7 +1324,7 @@ void InmarsatDemodGUI::handleInputMessages()
|
||||
{
|
||||
Message* message;
|
||||
|
||||
while ((message = getInputMessageQueue()->pop()) != 0)
|
||||
while ((message = getInputMessageQueue()->pop()) != nullptr)
|
||||
{
|
||||
if (handleMessage(*message))
|
||||
{
|
||||
|
||||
@ -62,8 +62,8 @@ struct MessagePart {
|
||||
class MultipartMessage {
|
||||
public:
|
||||
|
||||
MultipartMessage(int id, std::map<std::string, std::string> params, const QDateTime& dateTime);
|
||||
void update(std::map<std::string, std::string> params, const QDateTime& dateTime);
|
||||
explicit MultipartMessage(int id, std::map<std::string, std::string>& params, const QDateTime& dateTime);
|
||||
void update(std::map<std::string, std::string>& params, const QDateTime& dateTime);
|
||||
void addPart(const MessagePart& part);
|
||||
QString getMessage() const;
|
||||
int getParts() const { return m_parts.size(); }
|
||||
@ -157,7 +157,7 @@ private:
|
||||
QRegularExpression m_typeRE;
|
||||
QRegularExpression m_messageRE;
|
||||
|
||||
explicit InmarsatDemodGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel, QWidget* parent = 0);
|
||||
explicit InmarsatDemodGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel, QWidget* parent = nullptr);
|
||||
virtual ~InmarsatDemodGUI();
|
||||
|
||||
void blockApplySettings(bool block);
|
||||
|
||||
@ -79,7 +79,7 @@ ChannelGUI* InmarsatDemodPlugin::createRxChannelGUI(
|
||||
{
|
||||
(void) deviceUISet;
|
||||
(void) rxChannel;
|
||||
return 0;
|
||||
return nullptr;
|
||||
}
|
||||
#else
|
||||
ChannelGUI* InmarsatDemodPlugin::createRxChannelGUI(DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel) const
|
||||
|
||||
@ -41,14 +41,14 @@ void InmarsatDemodSettings::appendDefaultColumnSettings()
|
||||
appendDefaultColumnSizes(m_messagesColumnSizes, INMARSATDEMOD_MESSAGES_COLUMNS);
|
||||
}
|
||||
|
||||
void InmarsatDemodSettings::appendDefaultColumnIndexes(QList<int>& list, int size)
|
||||
void InmarsatDemodSettings::appendDefaultColumnIndexes(QList<int>& list, int size) const
|
||||
{
|
||||
while (list.size() < size) {
|
||||
list.append(list.size());
|
||||
}
|
||||
}
|
||||
|
||||
void InmarsatDemodSettings::appendDefaultColumnSizes(QList<int>& list, int size)
|
||||
void InmarsatDemodSettings::appendDefaultColumnSizes(QList<int>& list, int size) const
|
||||
{
|
||||
while (list.size() < size) {
|
||||
list.append(-1);
|
||||
|
||||
@ -86,8 +86,8 @@ struct InmarsatDemodSettings
|
||||
void applySettings(const QStringList& settingsKeys, const InmarsatDemodSettings& settings);
|
||||
QString getDebugString(const QStringList& settingsKeys, bool force = false) const;
|
||||
void appendDefaultColumnSettings();
|
||||
void appendDefaultColumnIndexes(QList<int>& list, int size);
|
||||
void appendDefaultColumnSizes(QList<int>& list, int size);
|
||||
void appendDefaultColumnIndexes(QList<int>& list, int size) const;
|
||||
void appendDefaultColumnSizes(QList<int>& list, int size) const;
|
||||
};
|
||||
|
||||
#endif /* INCLUDE_INMARSATDEMODSETTINGS_H */
|
||||
|
||||
@ -42,7 +42,7 @@ class ScopeVis;
|
||||
// Automatic Gain Control
|
||||
class AGC {
|
||||
public:
|
||||
AGC();
|
||||
explicit AGC();
|
||||
Complex processOneSample(const Complex &iq, bool locked);
|
||||
Real getGain() const { return m_gain; }
|
||||
Real getAverage() const { return m_agcMovingAverage.instantAverage(); }
|
||||
@ -54,7 +54,7 @@ private:
|
||||
|
||||
class FrequencyOffsetEstimate {
|
||||
public:
|
||||
FrequencyOffsetEstimate();
|
||||
explicit FrequencyOffsetEstimate();
|
||||
~FrequencyOffsetEstimate();
|
||||
void processOneSample(Complex& iq, bool locked);
|
||||
Real getFreqHz() const { return m_freqOffsetHz; }
|
||||
@ -81,7 +81,7 @@ private:
|
||||
// Circular symbol/bit buffer for unique word detection, EVM calculation and equalizer training
|
||||
class SymbolBuffer {
|
||||
public:
|
||||
SymbolBuffer(int size=64*162);
|
||||
explicit SymbolBuffer(int size=64*162);
|
||||
void push(quint8 bit, Complex symbol);
|
||||
bool checkUW() const;
|
||||
Complex getSymbol(int idx) const;
|
||||
@ -98,7 +98,7 @@ private:
|
||||
|
||||
class Equalizer {
|
||||
public:
|
||||
Equalizer(int samplesPerSymbol);
|
||||
explicit Equalizer(int samplesPerSymbol);
|
||||
virtual ~Equalizer() {}
|
||||
virtual Complex processOneSample(Complex x, bool update, bool training=false) = 0;
|
||||
Complex getError() const { return m_error; }
|
||||
@ -114,14 +114,14 @@ protected:
|
||||
// Constant Modulus Equalizer
|
||||
class CMAEqualizer : public Equalizer {
|
||||
public:
|
||||
CMAEqualizer(int samplesPerSymbol);
|
||||
explicit CMAEqualizer(int samplesPerSymbol);
|
||||
Complex processOneSample(Complex x, bool update, bool training=false) override;
|
||||
};
|
||||
|
||||
// Least Mean Square Equalizer
|
||||
class LMSEqualizer : public Equalizer {
|
||||
public:
|
||||
LMSEqualizer(int samplesPerSymbol);
|
||||
explicit LMSEqualizer(int samplesPerSymbol);
|
||||
Complex processOneSample(Complex x, bool update, bool training=false) override;
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user