diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-03-06 06:05:17 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-03-06 06:05:17 +0000 |
| commit | 772ef0e6cfbb218814ad4e7d25dd94b697a6b4f3 (patch) | |
| tree | cc60120d48012dc8cd45e27d5f39931bae751d0b /Common/interface | |
| parent | Keep fixing metal back-end (diff) | |
| download | DiligentCore-772ef0e6cfbb218814ad4e7d25dd94b697a6b4f3.tar.gz DiligentCore-772ef0e6cfbb218814ad4e7d25dd94b697a6b4f3.zip | |
Keep fixing Metal backend + few other minor changes
Diffstat (limited to 'Common/interface')
| -rw-r--r-- | Common/interface/StringPool.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Common/interface/StringPool.h b/Common/interface/StringPool.h index 5254f5f2..2d28e904 100644 --- a/Common/interface/StringPool.h +++ b/Common/interface/StringPool.h @@ -43,6 +43,18 @@ public: StringPool (const StringPool&) = delete; StringPool& operator = (const StringPool&) = delete; + StringPool (StringPool&& Pool) : + m_pBuffer (Pool.m_pBuffer ), + m_pCurrPtr (Pool.m_pCurrPtr ), + m_ReservedSize(Pool.m_ReservedSize), + m_pAllocator (Pool.m_pAllocator ) + { + Pool.m_pBuffer = nullptr; + Pool.m_pCurrPtr = nullptr; + Pool.m_ReservedSize = 0; + Pool.m_pAllocator = nullptr; + } + ~StringPool() { if(m_pBuffer != nullptr && m_pAllocator != nullptr) |
