[vala] codegen: Fix .begin on async methods returning structs



commit 79925e1174d62d740ca8f360f489dd1660ea5881
Author: JÃrg Billeter <j bitron ch>
Date:   Thu Jun 14 14:26:33 2012 +0200

    codegen: Fix .begin on async methods returning structs

 codegen/valaccodemethodcallmodule.vala |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valaccodemethodcallmodule.vala b/codegen/valaccodemethodcallmodule.vala
index 8be973e..bb27040 100644
--- a/codegen/valaccodemethodcallmodule.vala
+++ b/codegen/valaccodemethodcallmodule.vala
@@ -618,6 +618,11 @@ public class Vala.CCodeMethodCallModule : CCodeAssignmentModule {
 			}
 		}
 
+		if (async_call == ccall) {
+			// skip out parameter for .begin() calls
+			return_result_via_out_param = false;
+		}
+
 		CCodeExpression out_param_ref = null;
 
 		if (return_result_via_out_param) {



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