[vala/staging: 4/10] vala: Use DataType.get_type_arguments()



commit 9c281736c1ddbe42392716a385dae951b8e4e6d6
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Wed Nov 21 13:53:42 2018 +0100

    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");
                }
 


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