EffectDelay: Make use of std::make_unique

Same behavior, but without the need for raw new or separately
memsetting.
This commit is contained in:
Lioncash 2020-03-27 15:51:34 -04:00
parent 9c75aeccbe
commit 5de0035adb
1 changed files with 1 additions and 2 deletions

View File

@ -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;