From 1a8071ec066a2cda0a5c8bb4c4ba87c45ccf2e12 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Mon, 26 Oct 2026 17:37:57 -0400 Subject: [PATCH] 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 --- plugins/feature/morsedecoder/morsedecoder.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/feature/morsedecoder/morsedecoder.h b/plugins/feature/morsedecoder/morsedecoder.h index 5e7a1aa62..98d9e474c 100644 --- a/plugins/feature/morsedecoder/morsedecoder.h +++ b/plugins/feature/morsedecoder/morsedecoder.h @@ -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) {} };