]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codegen: Don't write declaration of CreationMethod for compact-classes twice
authorRico Tzschichholz <ricotz@ubuntu.com>
Fri, 11 Nov 2016 22:39:21 +0000 (23:39 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Fri, 11 Nov 2016 22:39:21 +0000 (23:39 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=772661

codegen/valaccodemethodmodule.vala

index 8e4c213b9c5a942a774894d36f7fb6b34e89446d..cee3ec18de62662679a5e0adcf48198465d207fb 100644 (file)
@@ -188,7 +188,7 @@ public abstract class Vala.CCodeMethodModule : CCodeStructModule {
                        decl_space.add_function_declaration (function);
                }
 
-               if (m is CreationMethod && cl != null) {
+               if (is_gtypeinstance_creation_method (m)) {
                        // _construct function
                        function = new CCodeFunction (get_ccode_real_name (m));