mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-13 15:40:57 +00:00
GUI: Another attempt to fix compilation on older gcc
This commit is contained in:
parent
9cfe2cb22a
commit
4fd186a54d
@ -263,6 +263,12 @@ struct LauncherEntry {
|
||||
}
|
||||
};
|
||||
|
||||
struct LauncherEntryComparator {
|
||||
bool operator()(const LauncherEntry &x, const LauncherEntry &y) const {
|
||||
return scumm_compareDictionary(x.description.c_str(), y.description.c_str()) < 0;
|
||||
}
|
||||
};
|
||||
|
||||
void LauncherDialog::updateListing() {
|
||||
U32StringArray l;
|
||||
ListWidget::ColorList colors;
|
||||
@ -307,12 +313,6 @@ void LauncherDialog::updateListing() {
|
||||
}
|
||||
|
||||
// Now sort the list in dictionary order
|
||||
struct LauncherEntryComparator {
|
||||
bool operator()(const LauncherEntry &x, const LauncherEntry &y) const {
|
||||
return scumm_compareDictionary(x.description.c_str(), y.description.c_str()) < 0;
|
||||
}
|
||||
};
|
||||
|
||||
Common::sort(domainList.begin(), domainList.end(), LauncherEntryComparator());
|
||||
|
||||
// And fill out our structures
|
||||
|
Loading…
x
Reference in New Issue
Block a user