From: Jürg Billeter Date: Sat, 21 Aug 2010 16:36:42 +0000 (+0200) Subject: Fix writing of construct_function attribute X-Git-Tag: 0.9.8~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9112d76ea858b235e6c5822072a5cb98f6f74617;p=thirdparty%2Fvala.git Fix writing of construct_function attribute --- diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala index f1b9d2419..b4b19d70d 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 = ", "; } }