From: Jürg Billeter Date: Sat, 13 Mar 2010 20:00:38 +0000 (+0100) Subject: dova: Pass structs by value by default X-Git-Tag: 0.8.0~192 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04200577b8e337737ddde0599420e9cd6a9bb955;p=thirdparty%2Fvala.git dova: Pass structs by value by default --- diff --git a/vala/valastruct.vala b/vala/valastruct.vala index 7f933f060..f5d732529 100644 --- a/vala/valastruct.vala +++ b/vala/valastruct.vala @@ -639,6 +639,9 @@ public class Vala.Struct : TypeSymbol { // used by time_t return false; } + if (CodeContext.get ().profile == Profile.DOVA) { + return true; + } return (boolean_type || integer_type || floating_type || get_attribute ("SimpleType") != null); }