From 2f1566e0b4e71f9b03ae8081e81a85f52ddeab23 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 1 Jan 2019 14:33:01 -0800 Subject: Add and use a make_unique function --- OpenAL32/alAuxEffectSlot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenAL32') 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(new ALeffectslot{}); + *iter = al::make_unique(); ALenum err{InitEffectSlot(iter->get())}; if(err != AL_NO_ERROR) { -- cgit v1.2.3