Write COMPAT_MODE macro differently

This commit is contained in:
Christian Semmler 2024-05-14 08:02:22 -04:00
parent 2bbcb7381e
commit 8ad98d12a8

View File

@ -48,10 +48,11 @@ class LegoContainer {
void Clear() void Clear()
{ {
#ifdef COMPAT_MODE #ifdef COMPAT_MODE
for (typename LegoContainerInfo<T>::iterator it = m_map.begin(); it != m_map.end(); it++) { for (typename LegoContainerInfo<T>::iterator it = m_map.begin(); it != m_map.end(); it++)
#else #else
for (LegoContainerInfo<T>::iterator it = m_map.begin(); it != m_map.end(); it++) { for (LegoContainerInfo<T>::iterator it = m_map.begin(); it != m_map.end(); it++)
#endif #endif
{
delete (*it).second; delete (*it).second;
} }
} }