]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girparser: Do not add default constructor to compact classes
authorLuca Bruno <lucabru@src.gnome.org>
Sun, 1 May 2011 07:16:43 +0000 (09:16 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Sun, 1 May 2011 07:16:43 +0000 (09:16 +0200)
vala/valagirparser.vala

index 3864d2b01ea595695cfc61a32e466be929da8a7b..0002ac217cb7a630b67a59e619dd901f81b0e5fb 100644 (file)
@@ -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);