Some range-based for loops and some style cleanup.

This was SVN commit r16888.
This commit is contained in:
leper
2015-07-29 01:07:23 +00:00
parent b4d517c261
commit a07add11c6
8 changed files with 105 additions and 121 deletions
+2 -3
View File
@@ -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;
}