Browse Source

packetmodbpfdialog : Initialize packet BPF dialog state

Initialize the packet BPF dialog members from their 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
534fb5f3bc
No known key found for this signature in database
GPG Key ID: 51C7231FFED0E060
  1. 3
      plugins/channeltx/modpacket/packetmodbpfdialog.cpp

3
plugins/channeltx/modpacket/packetmodbpfdialog.cpp

@ -25,6 +25,9 @@ @@ -25,6 +25,9 @@
PacketModBPFDialog::PacketModBPFDialog(float lowFreq, float highFreq, int taps, QWidget* parent) :
QDialog(parent),
m_lowFreq(lowFreq),
m_highFreq(highFreq),
m_taps(taps),
ui(new Ui::PacketModBPFDialog)
{
ui->setupUi(this);

Loading…
Cancel
Save