From 9c281736c1ddbe42392716a385dae951b8e4e6d6 Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Wed, 21 Nov 2018 13:53:42 +0100 Subject: [PATCH] vala: Use DataType.get_type_arguments() --- vala/valatypecheck.vala | 2 +- vala/valatypeofexpression.vala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vala/valatypecheck.vala b/vala/valatypecheck.vala index cb0469a6f..904311d54 100644 --- a/vala/valatypecheck.vala +++ b/vala/valatypecheck.vala @@ -116,7 +116,7 @@ public class Vala.TypeCheck : Expression { return false; } - if (context.profile == Profile.GOBJECT && type_reference.get_type_arguments ().size > 0) { + if (context.profile == Profile.GOBJECT && type_reference.has_type_arguments ()) { Report.warning (_data_type.source_reference, "Type argument list has no effect"); } diff --git a/vala/valatypeofexpression.vala b/vala/valatypeofexpression.vala index 9b0506ba1..5aa28e1fd 100644 --- a/vala/valatypeofexpression.vala +++ b/vala/valatypeofexpression.vala @@ -82,7 +82,7 @@ public class Vala.TypeofExpression : Expression { value_type = context.analyzer.type_type; - if (context.profile == Profile.GOBJECT && type_reference.get_type_arguments ().size > 0) { + if (context.profile == Profile.GOBJECT && type_reference.has_type_arguments ()) { Report.warning (_data_type.source_reference, "Type argument list without effect"); } -- 2.47.2