From: Jürg Billeter Date: Thu, 3 Sep 2009 09:21:25 +0000 (+0200) Subject: Chain up to g_object_new where possible X-Git-Tag: 0.7.6~143 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95950ce2e85b6ff0dca53c422c6abe8c708182b1;p=thirdparty%2Fvala.git Chain up to g_object_new where possible Fixes bug 593159. --- diff --git a/vala/valacreationmethod.vala b/vala/valacreationmethod.vala index e4785ff46..3051e52eb 100644 --- a/vala/valacreationmethod.vala +++ b/vala/valacreationmethod.vala @@ -179,8 +179,6 @@ public class Vala.CreationMethod : Method { if (cl.base_class.default_construction_method != null && !cl.base_class.default_construction_method.has_construct_function) { // chain up impossible - } else if (analyzer.context.profile == Profile.GOBJECT && cl.base_class == analyzer.object_type) { - // no chain up necessary for direct GObject subclasses } else if (analyzer.context.profile == Profile.GOBJECT && cl.is_subtype_of (analyzer.object_type) && (n_construction_params > 0 || cl.constructor != null)) {