[vala/staging: 4/9] vala: Use DataType.get_type_arguments()
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging: 4/9] vala: Use DataType.get_type_arguments()
- Date: Wed, 21 Nov 2018 16:51:21 +0000 (UTC)
commit 3cb608fe8b4b14a88ef870c7eb9bf016008f6ed5
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]