From f6034bb1033f3ff62b9ecf5af5c07bd45b03bd60 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Fri, 18 Mar 2011 12:18:09 -0400 Subject: [PATCH] More Effective Violations being purged. --- src/SongUtil.h | 6 +++++- src/StepsUtil.h | 8 +++++++- src/Trail.h | 2 ++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/SongUtil.h b/src/SongUtil.h index 7262306f02..368594adb5 100644 --- a/src/SongUtil.h +++ b/src/SongUtil.h @@ -178,7 +178,11 @@ class SongID mutable CachedObjectPointer m_Cache; public: - SongID() { Unset(); } + /** + * @brief Set up the SongID with default values. + * + * This used to call Unset() to do the same thing. */ + SongID(): sDir("") { m_Cache.Unset(); } void Unset() { FromSong(NULL); } void FromSong( const Song *p ); Song *ToSong() const; diff --git a/src/StepsUtil.h b/src/StepsUtil.h index f2fa03fd06..05aa5a6155 100644 --- a/src/StepsUtil.h +++ b/src/StepsUtil.h @@ -163,7 +163,13 @@ class StepsID mutable CachedObjectPointer m_Cache; public: - StepsID() { Unset(); } + /** + * @brief Set up the StepsID with default values. + * + * This used to call Unset(), which set the variables to + * the same thing. */ + StepsID(): st(StepsType_Invalid), dc(Difficulty_Invalid), + sDescription(""), uHash(0) {} void Unset() { FromSteps(NULL); } void FromSteps( const Steps *p ); Steps *ToSteps( const Song *p, bool bAllowNull ) const; diff --git a/src/Trail.h b/src/Trail.h index 10fa10d9b7..092d9c31dd 100644 --- a/src/Trail.h +++ b/src/Trail.h @@ -17,6 +17,7 @@ struct TrailEntry TrailEntry(): pSong(NULL), pSteps(NULL), + Modifiers(""), bSecret(false), iLowMeter(-1), iHighMeter(-1), @@ -69,6 +70,7 @@ public: * * This used to call Init(), which is still available. */ Trail(): m_StepsType(StepsType_Invalid), + m_CourseType(CourseType_Invalid), m_CourseDifficulty(Difficulty_Invalid), m_iSpecifiedMeter(-1), m_bRadarValuesCached(false) {