From: Luca Bruno Date: Thu, 3 Mar 2011 17:48:45 +0000 (+0100) Subject: codegen: Drop useless comma expression in method call X-Git-Tag: 0.11.7~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb54f1e1795d653c4d98dd60779085bf7811ec7f;p=thirdparty%2Fvala.git codegen: Drop useless comma expression in method call --- diff --git a/codegen/valaccodemethodcallmodule.vala b/codegen/valaccodemethodcallmodule.vala index 5f6ffdb77..87a083f51 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