From a0210f1d851b4a1238d48780923e0ed190f792ab Mon Sep 17 00:00:00 2001 From: Damian Day Date: Tue, 26 May 2020 20:29:15 +0100 Subject: [PATCH] Minor updates to Queue --- BeefLibs/corlib/src/Collections/Queue.bf | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/BeefLibs/corlib/src/Collections/Queue.bf b/BeefLibs/corlib/src/Collections/Queue.bf index 4d8b8d81..5ab1819b 100644 --- a/BeefLibs/corlib/src/Collections/Queue.bf +++ b/BeefLibs/corlib/src/Collections/Queue.bf @@ -53,7 +53,6 @@ namespace System.Collections { Debug.Assert((uint)capacity <= (uint)SizeFlags); T* items = append T[capacity]* (?); - mItems = items; mHead = 0; mTail = 0; mSize = 0; @@ -123,12 +122,12 @@ namespace System.Collections get { return mSize; } } - protected T* Alloc(int size) + protected virtual T* Alloc(int size) { return Internal.AllocRawArrayUnmarked(size); } - protected void Free(T* val) + protected virtual void Free(T* val) { delete (void*)val; }