From e8fe450aec8a3f48dc2e3d576787cf84fa7cb079 Mon Sep 17 00:00:00 2001 From: Allan Bazinet Date: Sat, 19 Oct 2024 13:24:51 -0700 Subject: [PATCH] Use in-class initialization --- plotter.cpp | 2 -- plotter.h | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/plotter.cpp b/plotter.cpp index 64e0347d..1e82564f 100644 --- a/plotter.cpp +++ b/plotter.cpp @@ -66,8 +66,6 @@ CPlotter::CPlotter(QWidget *parent) : //CPlotter Constructor m_plot2dGain {0}, m_plot2dZero {0}, m_nSubMode {0}, - m_filterCenter {0}, - m_filterWidth {0}, m_fftBinWidth {1500.0/2048.0}, m_dialFreq {0.}, m_line {0}, diff --git a/plotter.h b/plotter.h index 721022a4..b2566fe1 100644 --- a/plotter.h +++ b/plotter.h @@ -156,8 +156,8 @@ private: bool m_replot = false; bool m_flatten = false; - int m_filterCenter; - int m_filterWidth; + int m_filterCenter = 0; + int m_filterWidth = 0; double m_fftBinWidth; double m_dialFreq;