From: Rico Tzschichholz Date: Wed, 21 Nov 2018 12:53:42 +0000 (+0100) Subject: vala: Use DataType.get_type_arguments() X-Git-Tag: 0.43.1~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c281736c1ddbe42392716a385dae951b8e4e6d6;p=thirdparty%2Fvala.git vala: Use DataType.get_type_arguments() --- 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"); }