From 85dae04da5245dcfd3f9c1b522b6837346e367a1 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Sat, 27 Apr 2013 23:58:35 -0400 Subject: [PATCH] Again, auto can come in handy. --- src/Course.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Course.cpp b/src/Course.cpp index 75d32fce14..66a79a6edf 100644 --- a/src/Course.cpp +++ b/src/Course.cpp @@ -798,9 +798,9 @@ void Course::RegenerateNonFixedTrails() const if( AllSongsAreFixed() ) return; - FOREACHM( CacheEntry, CacheData, m_TrailCache, e ) + for (auto const & e: m_TrailCache) { - const CacheEntry &ce = e->first; + const CacheEntry &ce = e.first; GetTrailForceRegenCache( ce.first, ce.second ); } }