diff options
author | Chris Robinson <[email protected]> | 2019-09-01 17:54:17 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-09-01 17:54:17 -0700 |
commit | bb35e24c9ba7ec01c05fc1f07ef737c15821283a (patch) | |
tree | 446a56e69f7cce88a07ada7848298cdfbc9a775a /alc/alc.cpp | |
parent | 727217ce0a9765270551ad6e10a25ee0b7fb74e6 (diff) |
Avoid unnecessary placement new definitions
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r-- | alc/alc.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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<ALeffectslot>{new (ptr) ALeffectslot{}}; + mDefaultSlot = std::unique_ptr<ALeffectslot>{new ALeffectslot{}}; if(InitEffectSlot(mDefaultSlot.get()) == AL_NO_ERROR) aluInitEffectPanning(mDefaultSlot.get(), mDevice.get()); else |