[vala] girparser: Do not add default constructor to compact classes



commit 60dda94943c16cd0351aafb60692ed81ec0b00da
Author: Luca Bruno <lucabru src gnome org>
Date:   Sun May 1 09:16:43 2011 +0200

    girparser: Do not add default constructor to compact classes

 vala/valagirparser.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 3864d2b..0002ac2 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);



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