Browse Source

packetmodrepeatdialog: Initialize packet repeat dialog state

Initialize m_repeatDelay and m_repeatCount from the corresponding constructor
arguments so the dialog state is defined when the dialog is created.

These members were previously left uninitialized despite the constructor
receiving the values used to initialize the corresponding UI controls.

This resolves the uninitialized member findings reported by Coverity
(UNINIT_CTOR).

Signed-off-by: Robin Getz <rgetz503@gmail.com>
chirpmodem-v8.0.0
Robin Getz 3 months ago
parent
commit
855a8811d0
No known key found for this signature in database
GPG Key ID: 51C7231FFED0E060
  1. 2
      plugins/channeltx/modpacket/packetmodrepeatdialog.cpp

2
plugins/channeltx/modpacket/packetmodrepeatdialog.cpp

@ -24,6 +24,8 @@ @@ -24,6 +24,8 @@
PacketModRepeatDialog::PacketModRepeatDialog(float repeatDelay, int repeatCount, QWidget* parent) :
QDialog(parent),
m_repeatDelay(repeatDelay),
m_repeatCount(repeatCount),
ui(new Ui::PacketModRepeatDialog)
{
ui->setupUi(this);

Loading…
Cancel
Save