From b5b64003200909408d422e9d1a0ec4155a062427 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Mon, 15 May 2023 15:08:52 +0200 Subject: [PATCH] Fix: Use vector. --- code/Common/StackAllocator.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/code/Common/StackAllocator.h b/code/Common/StackAllocator.h index 813d8ed5b..f0b712b24 100644 --- a/code/Common/StackAllocator.h +++ b/code/Common/StackAllocator.h @@ -47,8 +47,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #ifndef AI_STACK_ALLOCATOR_H_INC #define AI_STACK_ALLOCATOR_H_INC - -#include +#include #include #include @@ -83,10 +82,9 @@ private: constexpr const static size_t g_startBytesPerBlock = 16 * 1024; // Size of the first block. Next blocks will double in size until maximum size of g_maxBytesPerBlock size_t m_blockAllocationSize = g_startBytesPerBlock; // Block size of the current block size_t m_subIndex = g_maxBytesPerBlock; // The current byte offset in the current block - std::deque m_storageBlocks; // A list of blocks + std::vector m_storageBlocks; // A list of blocks }; - } // namespace Assimp #include "StackAllocator.inl"