From c5142530d675885415c9168869eb6c125ce10876 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 19 Nov 2018 02:17:06 -0800 Subject: Simplify the RefCount type --- OpenAL32/alAuxEffectSlot.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'OpenAL32') diff --git a/OpenAL32/alAuxEffectSlot.cpp b/OpenAL32/alAuxEffectSlot.cpp index 037c99dd..9c11720e 100644 --- a/OpenAL32/alAuxEffectSlot.cpp +++ b/OpenAL32/alAuxEffectSlot.cpp @@ -545,15 +545,13 @@ ALenum InitializeEffect(ALCcontext *Context, ALeffectslot *EffectSlot, ALeffect static void ALeffectState_IncRef(ALeffectState *state) { - uint ref; - ref = IncrementRef(&state->Ref); + auto ref = IncrementRef(&state->Ref); TRACEREF("%p increasing refcount to %u\n", state, ref); } void ALeffectState_DecRef(ALeffectState *state) { - uint ref; - ref = DecrementRef(&state->Ref); + auto ref = DecrementRef(&state->Ref); TRACEREF("%p decreasing refcount to %u\n", state, ref); if(ref == 0) DELETE_OBJ(state); } -- cgit v1.2.3