From bb35e24c9ba7ec01c05fc1f07ef737c15821283a Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 1 Sep 2019 17:54:17 -0700 Subject: Avoid unnecessary placement new definitions --- alc/alc.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'alc/alc.cpp') diff --git a/alc/alc.cpp b/alc/alc.cpp index 8ee762d5..7964a2b3 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -2422,8 +2422,7 @@ void ALCcontext::init() { if(DefaultEffect.type != AL_EFFECT_NULL && mDevice->Type == Playback) { - void *ptr{al_calloc(16, sizeof(ALeffectslot))}; - mDefaultSlot = std::unique_ptr{new (ptr) ALeffectslot{}}; + mDefaultSlot = std::unique_ptr{new ALeffectslot{}}; if(InitEffectSlot(mDefaultSlot.get()) == AL_NO_ERROR) aluInitEffectPanning(mDefaultSlot.get(), mDevice.get()); else -- cgit v1.2.3