first try at fixing macos build

This commit is contained in:
Michal Macutkiewicz 2025-07-25 16:05:15 +02:00
parent 29985681a1
commit 1f6470477e
2 changed files with 7 additions and 5 deletions

View File

@ -1152,7 +1152,7 @@ inline void CDmaElement<T>::Init( CDmElement *pOwner, const char *pAttributeName
template <class T>
inline UtlSymId_t CDmaElement<T>::GetElementType() const
{
return this->Data().m_ElementType;
return this->Get().m_ElementType;
}
template <class T>

View File

@ -134,13 +134,15 @@ CUtlBlockMemory<T,I>::~CUtlBlockMemory()
//-----------------------------------------------------------------------------
// Fast swap
//-----------------------------------------------------------------------------
#include <utility>
template< class T, class I >
void CUtlBlockMemory<T,I>::Swap( CUtlBlockMemory< T, I > &mem )
{
this->swap( m_pMemory, mem.m_pMemory );
this->swap( m_nBlocks, mem.m_nBlocks );
this->swap( m_nIndexMask, mem.m_nIndexMask );
this->swap( m_nIndexShift, mem.m_nIndexShift );
std::swap( m_pMemory, mem.m_pMemory );
std::swap( m_nBlocks, mem.m_nBlocks );
std::swap( m_nIndexMask, mem.m_nIndexMask );
std::swap( m_nIndexShift, mem.m_nIndexShift );
}