From 0976455ec8be26cd5ceba069032e1a1c1f0f7ae5 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Wed, 1 May 2013 21:51:56 -0400 Subject: [PATCH] One loop here. Note: braces required with some of these macros. Another reason to look into getting rid of them. --- src/GraphDisplay.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/GraphDisplay.cpp b/src/GraphDisplay.cpp index 8e6248cc1c..5a8327964a 100644 --- a/src/GraphDisplay.cpp +++ b/src/GraphDisplay.cpp @@ -156,8 +156,10 @@ GraphDisplay::GraphDisplay() GraphDisplay::~GraphDisplay() { - FOREACH( Actor*, m_vpSongBoundaries, p ) - SAFE_DELETE( *p ); + for (Actor *p : m_vpSongBoundaries) + { + SAFE_DELETE( p ); + } m_vpSongBoundaries.clear(); SAFE_DELETE( m_pGraphLine ); SAFE_DELETE( m_pGraphBody );