aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-01-01 14:33:01 -0800
committerChris Robinson <[email protected]>2019-01-01 14:33:01 -0800
commit2f1566e0b4e71f9b03ae8081e81a85f52ddeab23 (patch)
treee16fee5e76b8c1b581f3003d487d711cb29ce9de /OpenAL32
parentc36798fd0759331caac80bb16cebe6c19a646090 (diff)
Add and use a make_unique function
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/alAuxEffectSlot.cpp2
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)
{