aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-19 02:17:06 -0800
committerChris Robinson <[email protected]>2018-11-19 02:17:06 -0800
commitc5142530d675885415c9168869eb6c125ce10876 (patch)
tree002ceb670126558bd0f1204c7b4db7302fb4d9f7 /OpenAL32
parent6e114a7a70c90d575e5978c5bcac95307bec0140 (diff)
Simplify the RefCount type
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/alAuxEffectSlot.cpp6
1 files changed, 2 insertions, 4 deletions
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);
}