mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Some range-based for loops and some style cleanup.
This was SVN commit r16888.
This commit is contained in:
@@ -44,11 +44,10 @@ CObjectEntry::CObjectEntry(CObjectBase* base, CSimulation2& simulation) :
|
||||
{
|
||||
}
|
||||
|
||||
template<typename T, typename S> static void delete_pair_2nd(std::pair<T,S> v) { delete v.second; }
|
||||
|
||||
CObjectEntry::~CObjectEntry()
|
||||
{
|
||||
std::for_each(m_Animations.begin(), m_Animations.end(), delete_pair_2nd<CStr, CSkeletonAnim*>);
|
||||
for (const std::pair<CStr, CSkeletonAnim*>& anim : m_Animations)
|
||||
delete anim.second;
|
||||
|
||||
delete m_Model;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user