[vala/0.40] vala: Trust "value_owned" when writing property getter



commit 622c5aaf400d31d52a4da4a960839405086c96a5
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Thu May 16 17:24:05 2019 +0200

    vala: Trust "value_owned" when writing property getter

 vala/valacodewriter.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala
index 5d4385ae5..e4d25a63a 100644
--- a/vala/valacodewriter.vala
+++ b/vala/valacodewriter.vala
@@ -864,7 +864,7 @@ public class Vala.CodeWriter : CodeVisitor {
 
                        write_property_accessor_accessibility (prop.get_accessor);
 
-                       if (prop.get_accessor.value_type.is_disposable ()) {
+                       if (prop.get_accessor.value_type.value_owned) {
                                write_string (" owned");
                        }
 


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