[vala/emit-let: 2/5] codegen: Drop useless comma expression in method call



commit eb54f1e1795d653c4d98dd60779085bf7811ec7f
Author: Luca Bruno <lucabru src gnome org>
Date:   Thu Mar 3 18:48:45 2011 +0100

    codegen: Drop useless comma expression in method call

 codegen/valaccodemethodcallmodule.vala |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/codegen/valaccodemethodcallmodule.vala b/codegen/valaccodemethodcallmodule.vala
index 5f6ffdb..87a083f 100644
--- a/codegen/valaccodemethodcallmodule.vala
+++ b/codegen/valaccodemethodcallmodule.vala
@@ -626,11 +626,8 @@ public class Vala.CCodeMethodCallModule : CCodeAssignmentModule {
 
 			out_arg_map.set (get_param_pos (-3), new CCodeUnaryExpression (CCodeUnaryOperator.ADDRESS_OF, temp_ref));
 
-			var ccomma = new CCodeCommaExpression ();
-			ccomma.append_expression ((CCodeExpression) ccall_expr);
-			ccomma.append_expression ((CCodeExpression) temp_ref);
-
-			ccall_expr = ccomma;
+			ccode.add_expression (ccall_expr);
+			ccall_expr = temp_ref;
 		}
 
 		// append C arguments in the right order



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