[vala] codegen: Fix const warnings for temporary variables of method calls



commit 6a8647baac4da04cca09b20ea7e1a72ec703cb08
Author: Jürg Billeter <j bitron ch>
Date:   Sun Oct 10 23:02:17 2010 +0200

    codegen: Fix const warnings for temporary variables of method calls

 codegen/valaccodemethodcallmodule.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valaccodemethodcallmodule.vala b/codegen/valaccodemethodcallmodule.vala
index 540a54c..d5f9e48 100644
--- a/codegen/valaccodemethodcallmodule.vala
+++ b/codegen/valaccodemethodcallmodule.vala
@@ -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);



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