]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codegen: Drop useless comma expression in method call
authorLuca Bruno <lucabru@src.gnome.org>
Thu, 3 Mar 2011 17:48:45 +0000 (18:48 +0100)
committerLuca Bruno <lucabru@src.gnome.org>
Thu, 3 Mar 2011 18:53:00 +0000 (19:53 +0100)
codegen/valaccodemethodcallmodule.vala

index 5f6ffdb77bf9a9b87e25013cfc7b2e9cd36f071d..87a083f51dfcfb5ae98b2cb0e7894c371f6c6651 100644 (file)
@@ -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