More Effective Violations being purged.
This commit is contained in:
+5
-1
@@ -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
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user