Simplify. Done.
This commit is contained in:
@@ -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) );
|
||||
|
||||
@@ -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) );
|
||||
|
||||
Reference in New Issue
Block a user