[vala] dova: Do not accept `owned' for property get accessors



commit c8ea2a250e66190e0b07e7906e3d4866b081896f
Author: Jürg Billeter <j bitron ch>
Date:   Sat Mar 13 21:24:05 2010 +0100

    dova: Do not accept `owned' for property get accessors

 vala/valaparser.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valaparser.vala b/vala/valaparser.vala
index e92a4e8..90ad36d 100644
--- a/vala/valaparser.vala
+++ b/vala/valaparser.vala
@@ -2546,7 +2546,7 @@ public class Vala.Parser : CodeVisitor {
 				var accessor_access = parse_access_modifier (SymbolAccessibility.PUBLIC);
 
 				var value_type = type.copy ();
-				value_type.value_owned = accept (TokenType.OWNED);
+				value_type.value_owned = (context.profile != Profile.DOVA && accept (TokenType.OWNED));
 
 				if (accept (TokenType.GET)) {
 					if (prop.get_accessor != null) {



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