[vala/staging: 3/6] vala: Trust "value_owned" when writing property getter



commit b9cc8b9ec059837923f112c59c25b8330cdcb043
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 943cb4339..bdbc077a7 100644
--- a/vala/valacodewriter.vala
+++ b/vala/valacodewriter.vala
@@ -847,7 +847,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]