Browse Source

projector : Initialize previous value

Initialize the previous projected value so the first calculation has a
defined starting state rather than depending on whatever value happens to
be in the member.

Found by cppcheck (uninitMemberVar).

Signed-off-by: Robin Getz <rgetz503@gmail.com>
chirpmodem-v8.0.0
Robin Getz 2 months ago
parent
commit
f7fc03553f
No known key found for this signature in database
GPG Key ID: 51C7231FFED0E060
  1. 1
      sdrbase/dsp/projector.cpp

1
sdrbase/dsp/projector.cpp

@ -22,6 +22,7 @@ @@ -22,6 +22,7 @@
Projector::Projector(ProjectionType projectionType) :
m_projectionType(projectionType),
m_prevArg(0.0f),
m_prevVal(0.0f),
m_cache(nullptr),
m_cacheMaster(true)
{

Loading…
Cancel
Save