浏览代码

Fix: Use vector.

Kim Kulling 2 年之前
父节点
当前提交
b5b6400320
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      code/Common/StackAllocator.h

+ 2 - 4
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
 #ifndef AI_STACK_ALLOCATOR_H_INC
 #define AI_STACK_ALLOCATOR_H_INC
 #define AI_STACK_ALLOCATOR_H_INC
 
 
-
-#include <deque>
+#include <vector>
 #include <stdint.h>
 #include <stdint.h>
 #include <stddef.h>
 #include <stddef.h>
 
 
@@ -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
     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_blockAllocationSize = g_startBytesPerBlock; // Block size of the current block
     size_t m_subIndex = g_maxBytesPerBlock; // The current byte offset in the current block
     size_t m_subIndex = g_maxBytesPerBlock; // The current byte offset in the current block
-    std::deque<uint8_t *> m_storageBlocks;  // A list of blocks
+    std::vector<uint8_t *> m_storageBlocks;  // A list of blocks
 };
 };
 
 
-
 } // namespace Assimp
 } // namespace Assimp
 
 
 #include "StackAllocator.inl"
 #include "StackAllocator.inl"