]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codegen: Fix const warnings for temporary variables of method calls
authorJürg Billeter <j@bitron.ch>
Sun, 10 Oct 2010 21:02:17 +0000 (23:02 +0200)
committerJürg Billeter <j@bitron.ch>
Sun, 10 Oct 2010 21:08:00 +0000 (23:08 +0200)
codegen/valaccodemethodcallmodule.vala

index 540a54ca622789ea4b9dbdf04672e8177a3f51d0..d5f9e482663fe4469dea2a382cfbad50124fc8e2 100644 (file)
@@ -806,7 +806,7 @@ public class Vala.CCodeMethodCallModule : CCodeAssignmentModule {
                                }
                        }
 
-                       var temp_var = get_temp_variable (result_type);
+                       var temp_var = get_temp_variable (result_type, result_type.value_owned);
                        var temp_ref = get_variable_cexpression (temp_var.name);
 
                        emit_temp_var (temp_var);