From: Luca Bruno Date: Sun, 1 May 2011 07:16:43 +0000 (+0200) Subject: girparser: Do not add default constructor to compact classes X-Git-Tag: 0.13.0~182 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60dda94943c16cd0351aafb60692ed81ec0b00da;p=thirdparty%2Fvala.git girparser: Do not add default constructor to compact classes --- diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala index 3864d2b01..0002ac217 100644 --- a/vala/valagirparser.vala +++ b/vala/valagirparser.vala @@ -753,7 +753,7 @@ public class Vala.GirParser : CodeVisitor { } var cl = symbol as Class; - if (cl != null && cl.default_construction_method == null) { + if (cl != null && !cl.is_compact && cl.default_construction_method == null) { // always provide constructor in generated bindings // to indicate that implicit Object () chainup is allowed var cm = new CreationMethod (null, null, cl.source_reference);