From: Rico Tzschichholz Date: Fri, 11 Nov 2016 22:39:21 +0000 (+0100) Subject: codegen: Don't write declaration of CreationMethod for compact-classes twice X-Git-Tag: 0.35.1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a008d0837f7cbe2f162787f0ccba7290b39cb48;p=thirdparty%2Fvala.git codegen: Don't write declaration of CreationMethod for compact-classes twice https://bugzilla.gnome.org/show_bug.cgi?id=772661 --- diff --git a/codegen/valaccodemethodmodule.vala b/codegen/valaccodemethodmodule.vala index 8e4c213b9..cee3ec18d 100644 --- a/codegen/valaccodemethodmodule.vala +++ b/codegen/valaccodemethodmodule.vala @@ -188,7 +188,7 @@ public abstract class Vala.CCodeMethodModule : CCodeStructModule { decl_space.add_function_declaration (function); } - if (m is CreationMethod && cl != null) { + if (is_gtypeinstance_creation_method (m)) { // _construct function function = new CCodeFunction (get_ccode_real_name (m));