Simplify. Done.

This commit is contained in:
Steve Checkoway
2006-10-01 14:53:03 +00:00
parent 01fb4540f3
commit 40212d0a01
2 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -36,8 +36,7 @@ Trail *TrailID::ToTrail( const Course *p, bool bAllowNull ) const
XNode* TrailID::CreateNode() const
{
XNode* pNode = new XNode;
pNode->m_sName = "Trail";
XNode* pNode = new XNode( "Trail" );
pNode->AppendAttr( "StepsType", GameManager::StepsTypeToString(st) );
pNode->AppendAttr( "CourseDifficulty", CourseDifficultyToString(cd) );
+1 -2
View File
@@ -198,8 +198,7 @@ bool Workout::SaveToFile( RString sFile )
{
m_sFile = sFile;
XNode xml;
xml.m_sName = "Workout";
XNode xml( "Workout" );
xml.AppendChild( "Name", m_sName );
RString s;
xml.AppendChild( "WorkoutProgram", WorkoutProgramToString(m_WorkoutProgram) );