Fix: Try unique_ptr

pull/5096/head
Kim Kulling 2023-05-15 15:46:21 +02:00 committed by GitHub
parent 8ad4bb0b2c
commit 71a4977dd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -82,7 +82,8 @@ 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::vector<uint8_t *> m_storageBlocks; // A list of blocks std::vector<std::unique_ptr<uint8_t[]>> m_storageBlocks;
//std::vector<uint8_t *> m_storageBlocks; // A list of blocks
}; };
} // namespace Assimp } // namespace Assimp