diff options
author | Chris Robinson <[email protected]> | 2019-01-01 14:33:01 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-01-01 14:33:01 -0800 |
commit | 2f1566e0b4e71f9b03ae8081e81a85f52ddeab23 (patch) | |
tree | e16fee5e76b8c1b581f3003d487d711cb29ce9de /OpenAL32 | |
parent | c36798fd0759331caac80bb16cebe6c19a646090 (diff) |
Add and use a make_unique function
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/alAuxEffectSlot.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/alAuxEffectSlot.cpp b/OpenAL32/alAuxEffectSlot.cpp index fc43edbe..0c2d7bec 100644 --- a/OpenAL32/alAuxEffectSlot.cpp +++ b/OpenAL32/alAuxEffectSlot.cpp @@ -213,7 +213,7 @@ AL_API ALvoid AL_APIENTRY alGenAuxiliaryEffectSlots(ALsizei n, ALuint *effectslo iter = context->EffectSlotList.end() - 1; } - *iter = std::unique_ptr<ALeffectslot>(new ALeffectslot{}); + *iter = al::make_unique<ALeffectslot>(); ALenum err{InitEffectSlot(iter->get())}; if(err != AL_NO_ERROR) { |