mirror of https://github.com/AxioDL/amuse.git
EffectDelay: Make use of std::make_unique
Same behavior, but without the need for raw new or separately memsetting.
This commit is contained in:
parent
9c75aeccbe
commit
5de0035adb
|
@ -50,8 +50,7 @@ void EffectDelayImp<T>::_update() {
|
|||
x18_currentFeedback[i] = x48_feedback[i] * 128 / 100;
|
||||
x24_currentOutput[i] = x54_output[i] * 128 / 100;
|
||||
|
||||
x30_chanLines[i].reset(new T[m_blockSamples * x0_currentSize[i]]);
|
||||
memset(x30_chanLines[i].get(), 0, m_blockSamples * x0_currentSize[i] * sizeof(T));
|
||||
x30_chanLines[i] = std::make_unique<T[]>(m_blockSamples * x0_currentSize[i]);
|
||||
}
|
||||
|
||||
m_dirty = false;
|
||||
|
|
Loading…
Reference in New Issue