[vala] Fix virtual methods throwing errors



commit 97e50fe6bbba551500d88f1ff978a8a904eae5c8
Author: Jürg Billeter <j bitron ch>
Date:   Sun Apr 12 21:33:08 2009 +0200

    Fix virtual methods throwing errors
    
    Fixes bug 578778.
---
 gobject/valaccodemethodmodule.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gobject/valaccodemethodmodule.vala b/gobject/valaccodemethodmodule.vala
index 67dc2f7..5643639 100644
--- a/gobject/valaccodemethodmodule.vala
+++ b/gobject/valaccodemethodmodule.vala
@@ -112,7 +112,7 @@ internal class Vala.CCodeMethodModule : CCodeStructModule {
 			var cparam = new CCodeFormalParameter ("error", "GError**");
 			cparam_map.set (get_param_pos (-1), cparam);
 			if (carg_map != null) {
-				carg_map.set (get_param_pos (-1), get_variable_cexpression (cparam.name));
+				carg_map.set (get_param_pos (-1), new CCodeIdentifier (cparam.name));
 			}
 		}
 	}



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