More Effective Violations being purged.

This commit is contained in:
Jason Felds
2011-03-18 12:18:09 -04:00
parent 8829599e4d
commit f6034bb103
3 changed files with 14 additions and 2 deletions
+5 -1
View File
@@ -178,7 +178,11 @@ class SongID
mutable CachedObjectPointer<Song> 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;
+7 -1
View File
@@ -163,7 +163,13 @@ class StepsID
mutable CachedObjectPointer<Steps> 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;
+2
View File
@@ -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)
{