[gnome-games/wip/exalm/uid: 14/16] game: Use Platform.compare() instead of reinventing it
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/uid: 14/16] game: Use Platform.compare() instead of reinventing it
- Date: Thu, 5 Mar 2020 17:59:26 +0000 (UTC)
commit 62e6ad2d92fe6fc0e5e4c670805ac5dd6f7553bb
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Thu Mar 5 22:53:08 2020 +0500
game: Use Platform.compare() instead of reinventing it
src/core/game.vala | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/core/game.vala b/src/core/game.vala
index 30153f3d..abbf001e 100644
--- a/src/core/game.vala
+++ b/src/core/game.vala
@@ -83,8 +83,7 @@ public class Games.Game : Object {
if (ret != 0)
return ret;
- ret = a.platform.get_name ().collate (
- b.platform.get_name ());
+ ret = Platform.compare (a.platform, b.platform);
if (ret != 0)
return ret;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]