std::sort takes a function that returns a bool, not an int
This commit is contained in:
@@ -76,7 +76,7 @@ SongEntry::SongEntry()
|
||||
}
|
||||
|
||||
|
||||
static int CompareSongEntries(const SongEntry &se1, const SongEntry &se2)
|
||||
static bool CompareSongEntries(const SongEntry &se1, const SongEntry &se2)
|
||||
{
|
||||
return se1.m_sSongName < se2.m_sSongName;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user