mirror of
https://github.com/ShaYmez/xlxd.git
synced 2025-07-03 08:55:16 -04:00
It is always better to initialize variables
This commit is contained in:
parent
de961853c7
commit
adbea50027
@ -30,6 +30,7 @@ CFIRFilter::CFIRFilter(const float* taps, int tapsLength)
|
|||||||
{
|
{
|
||||||
m_taps = new float[tapsLength];
|
m_taps = new float[tapsLength];
|
||||||
m_buffer = new float[tapsLength];
|
m_buffer = new float[tapsLength];
|
||||||
|
m_tapsLength = tapsLength;
|
||||||
|
|
||||||
::memcpy(m_taps, taps, tapsLength * sizeof(float));
|
::memcpy(m_taps, taps, tapsLength * sizeof(float));
|
||||||
::memset(m_buffer, 0, tapsLength * sizeof(float));
|
::memset(m_buffer, 0, tapsLength * sizeof(float));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user