git.s-ol.nu ~forks/DiligentCore / f28eb3b
Renamed StringPool::Release to StringPool::Clear assiduous 10 months ago
2 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
6464
6565 ~StringPool()
6666 {
67 Release();
67 Clear();
6868 }
6969
7070 void Reserve(size_t Size, IMemoryAllocator& Allocator)
7171 {
72 Release();
72 Clear();
7373
7474 VERIFY(m_ReservedSize == 0, "Pool is already initialized");
7575 m_pAllocator = &Allocator;
8181 m_pCurrPtr = m_pBuffer;
8282 }
8383
84 void Release()
84 void Clear()
8585 {
8686 if (m_pBuffer != nullptr && m_pAllocator != nullptr)
8787 {
240240 void ClearInstanceData()
241241 {
242242 this->m_Instances.clear();
243 this->m_StringPool.Release();
243 this->m_StringPool.Clear();
244244 }
245245
246246 protected: