]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Chain up to g_object_new where possible
authorJürg Billeter <j@bitron.ch>
Thu, 3 Sep 2009 09:21:25 +0000 (11:21 +0200)
committerJürg Billeter <j@bitron.ch>
Thu, 3 Sep 2009 09:22:43 +0000 (11:22 +0200)
Fixes bug 593159.

vala/valacreationmethod.vala

index e4785ff461c4619248ddbb71717476506b70c16c..3051e52eb89df272cdacdecfbae0d30f70eeecc2 100644 (file)
@@ -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)) {