]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
dova: Pass structs by value by default
authorJürg Billeter <j@bitron.ch>
Sat, 13 Mar 2010 20:00:38 +0000 (21:00 +0100)
committerJürg Billeter <j@bitron.ch>
Sat, 13 Mar 2010 20:00:38 +0000 (21:00 +0100)
vala/valastruct.vala

index 7f933f0608c465ae4d9d858ddffbf1e238344b72..f5d73252965a0d077317de48bef3bdb8c956e034 100644 (file)
@@ -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);
        }