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