]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codegen: Use get_parameter_cvalue in return_out_parameter
authorLuca Bruno <lucabru@src.gnome.org>
Fri, 1 Jul 2011 13:27:20 +0000 (15:27 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Wed, 6 Jul 2011 20:32:26 +0000 (22:32 +0200)
Using load_parameter is not needed when assigning to the same parameter.

codegen/valaccodebasemodule.vala

index c2591fa057f1f1ffefe6644e68727a1fa856f305..910c7d65357234f2d25307e2de5bfc0144524f74 100644 (file)
@@ -3165,7 +3165,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
        public void return_out_parameter (Parameter param) {
                var delegate_type = param.variable_type as DelegateType;
 
-               var value = load_parameter (param);
+               var value = get_parameter_cvalue (param);
 
                var old_coroutine = is_in_coroutine ();
                current_method.coroutine = false;