[vala] dova: Fix throwing errors in constructors



commit da9369c180e9657bcd0e9dab2c2c0a8e9e931229
Author: Jürg Billeter <j bitron ch>
Date:   Wed Jun 16 08:34:26 2010 +0200

    dova: Fix throwing errors in constructors

 codegen/valadovaerrormodule.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valadovaerrormodule.vala b/codegen/valadovaerrormodule.vala
index 9da609a..e40c878 100644
--- a/codegen/valadovaerrormodule.vala
+++ b/codegen/valadovaerrormodule.vala
@@ -63,7 +63,7 @@ internal class Vala.DovaErrorModule : DovaDelegateModule {
 		if (current_method is CreationMethod) {
 			var cl = current_method.parent_symbol as Class;
 			var unref_call = new CCodeFunctionCall (new CCodeIdentifier (cl.get_unref_function ()));
-			unref_call.add_argument (new CCodeIdentifier ("self"));
+			unref_call.add_argument (new CCodeIdentifier ("this"));
 			cerror_block.add_statement (new CCodeExpressionStatement (unref_call));
 			cerror_block.add_statement (new CCodeReturnStatement (new CCodeConstant ("NULL")));
 		} else if (current_return_type is VoidType) {



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