Remove recursion. Make it public.

This commit is contained in:
Jason Felds
2013-06-08 22:28:10 -04:00
parent 575b6b8289
commit 09dff9834a
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -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
View File
@@ -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();