mirror of
https://github.com/LX3JL/xlxd.git
synced 2026-03-10 15:23:51 +01:00
It is always better to initialize variables
This commit is contained in:
parent
17a4fcfdeb
commit
a42e594bbb
|
|
@ -30,6 +30,7 @@ CFIRFilter::CFIRFilter(const float* taps, int tapsLength)
|
|||
{
|
||||
m_taps = new float[tapsLength];
|
||||
m_buffer = new float[tapsLength];
|
||||
m_tapsLength = tapsLength;
|
||||
|
||||
::memcpy(m_taps, taps, tapsLength * sizeof(float));
|
||||
::memset(m_buffer, 0, tapsLength * sizeof(float));
|
||||
|
|
|
|||
Loading…
Reference in a new issue