[vala/staging: 1/3] vala: Use is_weak() for type-arguments in DataType.to_qualified_string()
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging: 1/3] vala: Use is_weak() for type-arguments in DataType.to_qualified_string()
- Date: Sun, 4 Nov 2018 19:33:33 +0000 (UTC)
commit 0b869f28575deb15a1a54d102a3925f7ab80dcef
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sun Nov 4 12:40:53 2018 +0100
vala: Use is_weak() for type-arguments in DataType.to_qualified_string()
vala/valadatatype.vala | 2 +-
vala/valadelegatetype.vala | 2 +-
vala/valaunresolvedtype.vala | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/vala/valadatatype.vala b/vala/valadatatype.vala
index ce8a49610..8c52a4bfa 100644
--- a/vala/valadatatype.vala
+++ b/vala/valadatatype.vala
@@ -153,7 +153,7 @@ public abstract class Vala.DataType : CodeNode {
} else {
first = false;
}
- if (!type_arg.value_owned) {
+ if (type_arg.is_weak ()) {
s += "weak ";
}
s += type_arg.to_qualified_string (scope);
diff --git a/vala/valadelegatetype.vala b/vala/valadelegatetype.vala
index 4fbaca175..73155359d 100644
--- a/vala/valadelegatetype.vala
+++ b/vala/valadelegatetype.vala
@@ -80,7 +80,7 @@ public class Vala.DelegateType : CallableType {
} else {
first = false;
}
- if (!type_arg.value_owned) {
+ if (type_arg.is_weak ()) {
s += "weak ";
}
s += type_arg.to_qualified_string (scope);
diff --git a/vala/valaunresolvedtype.vala b/vala/valaunresolvedtype.vala
index 84244809c..2185f1de2 100644
--- a/vala/valaunresolvedtype.vala
+++ b/vala/valaunresolvedtype.vala
@@ -99,7 +99,7 @@ public class Vala.UnresolvedType : DataType {
} else {
first = false;
}
- if (!type_arg.value_owned) {
+ if (type_arg.is_weak ()) {
s += "weak ";
}
s += type_arg.to_qualified_string (scope);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]