]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
dova: Do not write `owned' in VAPI files
authorJürg Billeter <j@bitron.ch>
Sat, 13 Mar 2010 20:54:35 +0000 (21:54 +0100)
committerJürg Billeter <j@bitron.ch>
Sat, 13 Mar 2010 20:54:35 +0000 (21:54 +0100)
vala/valacodewriter.vala

index bcfc8aa5187df3338bfb3ea75c2ddd78aedffae6..133dbb1e7b8ed79d7275a738cd21ff0c0a16855a 100644 (file)
@@ -1042,7 +1042,7 @@ public class Vala.CodeWriter : CodeVisitor {
                write_identifier (prop.name);
                write_string (" {");
                if (prop.get_accessor != null) {
-                       if (prop.get_accessor.value_type.is_disposable ()) {
+                       if (context.profile != Profile.DOVA && prop.get_accessor.value_type.is_disposable ()) {
                                write_string (" owned");
                        }
 
@@ -1050,8 +1050,8 @@ public class Vala.CodeWriter : CodeVisitor {
                        write_code_block (prop.get_accessor.body);
                }
                if (prop.set_accessor != null) {
-                       if (prop.set_accessor.value_type.value_owned) {
-                               write_string ("owned ");
+                       if (context.profile != Profile.DOVA && prop.set_accessor.value_type.value_owned) {
+                               write_string (" owned");
                        }
 
                        if (prop.set_accessor.writable) {