[Scummvm-git-logs] scummvm master -> 4fd186a54dcb0ac5c1ae7eaff87da776d4daed1a

sev- sev at scummvm.org
Wed Oct 21 22:45:27 UTC 2020


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
4fd186a54d GUI: Another attempt to fix compilation on older gcc


Commit: 4fd186a54dcb0ac5c1ae7eaff87da776d4daed1a
    https://github.com/scummvm/scummvm/commit/4fd186a54dcb0ac5c1ae7eaff87da776d4daed1a
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2020-10-22T00:45:04+02:00

Commit Message:
GUI: Another attempt to fix compilation on older gcc

Changed paths:
    gui/launcher.cpp


diff --git a/gui/launcher.cpp b/gui/launcher.cpp
index 3be8a63b68..591ea309cc 100644
--- a/gui/launcher.cpp
+++ b/gui/launcher.cpp
@@ -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




More information about the Scummvm-git-logs mailing list