]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: Use is_weak() for type-arguments in DataType.to_qualified_string()
authorRico Tzschichholz <ricotz@ubuntu.com>
Sun, 4 Nov 2018 11:40:53 +0000 (12:40 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 4 Nov 2018 11:57:02 +0000 (12:57 +0100)
vala/valadatatype.vala
vala/valadelegatetype.vala
vala/valaunresolvedtype.vala

index ce8a49610466e5b4d959b2e0392be986c768cf8a..8c52a4bfa467bad918fe9c5823ff7d1f9b39a845 100644 (file)
@@ -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);
index 4fbaca1752605fd10eff831afeef2a0aa8279773..73155359d77d904d7d69a0d8a8c3b0f0509dd3ec 100644 (file)
@@ -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);
index 84244809c0f96df171d43285cb3fa1da97bc8519..2185f1de2baa5b3fa706e42662ede91dfb1f2f74 100644 (file)
@@ -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);