From ca724644055756e017e71bfe891a9e69d61e1c7b Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 12 Aug 2005 03:18:31 +0000 Subject: [PATCH] simplify --- stepmania/src/HighScore.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/stepmania/src/HighScore.cpp b/stepmania/src/HighScore.cpp index 87999cba10..04a6ac9cda 100644 --- a/stepmania/src/HighScore.cpp +++ b/stepmania/src/HighScore.cpp @@ -26,7 +26,7 @@ struct HighScoreImpl RadarValues radarValues; float fLifeRemainingSeconds; - void Unset(); + HighScoreImpl(); XNode *CreateNode() const; void LoadFromNode( const XNode *pNode ); @@ -58,7 +58,7 @@ bool HighScoreImpl::operator==( const HighScoreImpl& other ) const return true; } -void HighScoreImpl::Unset() +HighScoreImpl::HighScoreImpl() { sName = ""; grade = GRADE_NO_DATA; @@ -145,12 +145,11 @@ REGISTER_CLASS_TRAITS( HighScoreImpl, new HighScoreImpl(*pCopy) ) HighScore::HighScore() { m_Impl = new HighScoreImpl; - Unset(); } void HighScore::Unset() { - m_Impl->Unset(); + m_Impl = new HighScoreImpl; } CString HighScore::GetName() const { return m_Impl->sName; }