From b30163e1575b237c3312fb1cc823e22964fe69ef Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 17 Oct 2006 08:58:58 +0000 Subject: [PATCH] private --- stepmania/src/CourseUtil.h | 9 +++++---- stepmania/src/Profile.cpp | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/stepmania/src/CourseUtil.h b/stepmania/src/CourseUtil.h index 9d715f4da1..614fd81c16 100644 --- a/stepmania/src/CourseUtil.h +++ b/stepmania/src/CourseUtil.h @@ -37,15 +37,12 @@ namespace CourseUtil class CourseID { -public: - RString sPath; - RString sFullTitle; - public: CourseID() { Unset(); } void Unset() { FromCourse(NULL); } void FromCourse( const Course *p ); Course *ToCourse() const; + const RString &GetPath() const { return sPath; } bool operator<( const CourseID &other ) const { return sPath < other.sPath || sFullTitle < other.sFullTitle; @@ -55,6 +52,10 @@ public: void LoadFromNode( const XNode* pNode ); RString ToString() const; bool IsValid() const; + +private: + RString sPath; + RString sFullTitle; }; #endif diff --git a/stepmania/src/Profile.cpp b/stepmania/src/Profile.cpp index 8179497ae9..9d074d017e 100644 --- a/stepmania/src/Profile.cpp +++ b/stepmania/src/Profile.cpp @@ -1427,7 +1427,7 @@ void Profile::LoadCourseScoresFromNode( const XNode* pCourseScores ) if( pC == NULL ) { RString sDir, sFName, sExt; - splitpath( courseID.sPath, sDir, sFName, sExt ); + splitpath( courseID.GetPath(), sDir, sFName, sExt ); RString sFullFileName = sFName + sExt; FOREACH_CONST( Course*, vpAllCourses, c )