[gnome-games/wip/exalm/rebrand: 50/102] platform: Use generics for type properties




commit 5bb4ad1c8a773b7c15643bcb26fccbee3695a049
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Tue Mar 30 01:51:29 2021 +0500

    platform: Use generics for type properties

 src/core/platform.vala | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/core/platform.vala b/src/core/platform.vala
index e05ff158..73803e1c 100644
--- a/src/core/platform.vala
+++ b/src/core/platform.vala
@@ -8,9 +8,9 @@ public class Games.Platform : Object {
        private string prefix;
 
        public bool autodiscovery { get; set; }
-       public Type snapshot_type { get; set; default = typeof (Snapshot); }
-       public Type runner_type { get; set; default = typeof (Runner); }
-       public Type parser_type { get; set; default = typeof (GameParser); }
+       public Type<Snapshot> snapshot_type { get; set; default = typeof (Snapshot); }
+       public Type<Runner> runner_type { get; set; default = typeof (Runner); }
+       public Type<GameParser> parser_type { get; set; default = typeof (GameParser); }
 
        public Platform (string id, string name,  string mime_type, string prefix) {
                this.id = id;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]