Browse Source

morsedecoder: Initialize text report metrics

Initialize estimated pitch, speed, signal threshold, and cost
function in MsgReportText to prevent indeterminate metric values.

Identified by cppcheck.

Signed-off-by: Robin Getz <rgetz503@gmail.com>
chirpmodem-v8.1.0
Robin Getz 4 weeks ago
parent
commit
1a8071ec06
No known key found for this signature in database
GPG Key ID: 51C7231FFED0E060
  1. 4
      plugins/feature/morsedecoder/morsedecoder.h

4
plugins/feature/morsedecoder/morsedecoder.h

@ -171,6 +171,10 @@ public: @@ -171,6 +171,10 @@ public:
QString m_text;
MsgReportText(const QString& text) :
m_estimatedPitchHz(0.0f),
m_estimatedSpeedWPM(0.0f),
m_signalThreshold(0.0f),
m_costFunction(0.0f),
m_text(text)
{}
};

Loading…
Cancel
Save