]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: Use DataType.get_type_arguments()
authorRico Tzschichholz <ricotz@ubuntu.com>
Wed, 21 Nov 2018 12:53:42 +0000 (13:53 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 21 Nov 2018 18:14:10 +0000 (19:14 +0100)
vala/valatypecheck.vala
vala/valatypeofexpression.vala

index cb0469a6fcffb6d35011ee3a59e8ff98e163b631..904311d54261a2a8c441011efa980d33ead825a3 100644 (file)
@@ -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");
                }
 
index 9b0506ba199fcdbaabe481d8b5b3892e3243192d..5aa28e1fd7191295ebfdd3ef08976cda33191b2b 100644 (file)
@@ -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");
                }