[vala/0.10: 27/38] Fix writing of construct_function attribute



commit 9112d76ea858b235e6c5822072a5cb98f6f74617
Author: Jürg Billeter <j bitron ch>
Date:   Sat Aug 21 18:36:42 2010 +0200

    Fix writing of construct_function attribute

 vala/valacodewriter.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala
index f1b9d24..b4b19d7 100644
--- a/vala/valacodewriter.vala
+++ b/vala/valacodewriter.vala
@@ -1029,7 +1029,7 @@ public class Vala.CodeWriter : CodeVisitor {
 				ccode_params.append_printf ("%shas_construct_function = false", separator);
 				separator = ", ";
 			} else if (m.name == ".new" && m.get_real_cname () != cm.get_default_construct_function ()) {
-				ccode_params.append_printf ("%sconstruct_function = \"%s\"", separator, cm.get_default_construct_function ());
+				ccode_params.append_printf ("%sconstruct_function = \"%s\"", separator, m.get_real_cname ());
 				separator = ", ";
 			}
 		}



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