Remove recursion. Make it public.
This commit is contained in:
+1
-1
@@ -1653,7 +1653,7 @@ public:
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
Course *pC = Luna<Course>::check( L, 1, true );
|
Course *pC = Luna<Course>::check( L, 1, true );
|
||||||
lua_pushboolean( L, p->TrySelectCourse( pC ) );
|
lua_pushboolean( L, p->SelectCourse( pC ) );
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-2
@@ -38,7 +38,7 @@ public:
|
|||||||
Song *GetPreferredSelectionForRandomOrPortal();
|
Song *GetPreferredSelectionForRandomOrPortal();
|
||||||
|
|
||||||
bool SelectSong( const Song *p );
|
bool SelectSong( const Song *p );
|
||||||
bool TrySelectCourse( const Course *p ){ return TrySelectCourse(p); }
|
bool SelectCourse( const Course *p );
|
||||||
bool SelectSection( const RString & SectionName );
|
bool SelectSection( const RString & SectionName );
|
||||||
void SetOpenSection( RString group );
|
void SetOpenSection( RString group );
|
||||||
SortOrder GetSortOrder() const { return m_SortOrder; }
|
SortOrder GetSortOrder() const { return m_SortOrder; }
|
||||||
@@ -58,7 +58,6 @@ protected:
|
|||||||
|
|
||||||
void GetSongList( vector<Song*> &arraySongs, SortOrder so );
|
void GetSongList( vector<Song*> &arraySongs, SortOrder so );
|
||||||
bool SelectSongOrCourse();
|
bool SelectSongOrCourse();
|
||||||
bool SelectCourse( const Course *p );
|
|
||||||
bool SelectModeMenuItem();
|
bool SelectModeMenuItem();
|
||||||
|
|
||||||
virtual void UpdateSwitch();
|
virtual void UpdateSwitch();
|
||||||
|
|||||||
Reference in New Issue
Block a user