[vala] dova: Do not write `owned' in VAPI files



commit 5e23e65bd788d76f8a80b400163ef03242d54828
Author: Jürg Billeter <j bitron ch>
Date:   Sat Mar 13 21:54:35 2010 +0100

    dova: Do not write `owned' in VAPI files

 vala/valacodewriter.vala |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala
index bcfc8aa..133dbb1 100644
--- a/vala/valacodewriter.vala
+++ b/vala/valacodewriter.vala
@@ -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) {



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