[gnome-games/wip/exalm/rebrand: 68/124] platform: Use generics for type properties
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/rebrand: 68/124] platform: Use generics for type properties
- Date: Sat, 19 Jun 2021 14:37:45 +0000 (UTC)
commit d88d09a0d096b6847602684c6d045738e9c91ed1
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]