From dbc09095adc83b0b88b22cd094731b4907cd371b Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 11 Oct 2023 23:06:36 -0700 Subject: Remove an unnecessary deque with a custom allocator --- al/source.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'al/source.cpp') diff --git a/al/source.cpp b/al/source.cpp index ce256f7a..8ad02321 100644 --- a/al/source.cpp +++ b/al/source.cpp @@ -438,7 +438,7 @@ struct VoicePos { * using the given offset type and offset. If the offset is out of range, * returns an empty optional. */ -std::optional GetSampleOffset(al::deque &BufferList, +std::optional GetSampleOffset(std::deque &BufferList, ALenum OffsetType, double Offset) { /* Find the first valid Buffer in the Queue */ @@ -1597,7 +1597,7 @@ NOINLINE void SetProperty(ALsource *const Source, ALCcontext *const Context, con return Context->setError(AL_INVALID_OPERATION, "Setting buffer on playing or paused source %u", Source->id); } - al::deque oldlist; + std::deque oldlist; if(values[0]) { using UT = std::make_unsigned_t; @@ -1614,7 +1614,7 @@ NOINLINE void SetProperty(ALsource *const Source, ALCcontext *const Context, con "Setting already-set callback buffer %u", buffer->id); /* Add the selected buffer to a one-item queue */ - al::deque newlist; + std::deque newlist; newlist.emplace_back(); newlist.back().mCallback = buffer->mCallback; newlist.back().mUserData = buffer->mUserData; -- cgit v1.2.3