Skip to content

Commit

Permalink
Fix lint warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
srcejon committed Oct 15, 2024
1 parent 5d1478d commit 98aa404
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions plugins/samplesource/rtlsdr/rtlsdrthread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ void RTLSDRThread::handleInputMessages()
{
Message* message;

while ((message = m_inputMessageQueue.pop()) != 0)
while ((message = m_inputMessageQueue.pop()) != nullptr)
{
if (handleMessage(*message)) {
delete message;
Expand All @@ -386,7 +386,7 @@ bool RTLSDRThread::handleMessage(const Message& cmd)
{
if (RTLSDRInput::MsgConfigureRTLSDR::match(cmd))
{
RTLSDRInput::MsgConfigureRTLSDR& conf = (RTLSDRInput::MsgConfigureRTLSDR&) cmd;
auto& conf = (const RTLSDRInput::MsgConfigureRTLSDR&) cmd;

applySettings(conf.getSettings(), conf.getSettingsKeys(), conf.getForce());

Expand Down
2 changes: 1 addition & 1 deletion plugins/samplesource/rtlsdr/rtlsdrthread.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class RTLSDRThread : public QThread {
Q_OBJECT

public:
RTLSDRThread(rtlsdr_dev_t* dev, SampleSinkFifo* sampleFifo, ReplayBuffer<quint8> *replayBuffer, const RTLSDRSettings& settings, QObject* parent = NULL);
RTLSDRThread(rtlsdr_dev_t* dev, SampleSinkFifo* sampleFifo, ReplayBuffer<quint8> *replayBuffer, const RTLSDRSettings& settings, QObject* parent = nullptr);
~RTLSDRThread();

void startWork();
Expand Down

0 comments on commit 98aa404

Please sign in to comment.