From: Rico Tzschichholz Date: Fri, 13 Jul 2018 18:04:24 +0000 (+0200) Subject: Revert "codegen: Don't emit g_type_add_instance_private() in *_register_type()" X-Git-Tag: 0.41.90~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca34aa621160558164e4be18726da89958a7dcd1;p=thirdparty%2Fvala.git Revert "codegen: Don't emit g_type_add_instance_private() in *_register_type()" This reverts commit cb669029dbd56e1d60586b39161f4948250c2f56. --- diff --git a/codegen/valatyperegisterfunction.vala b/codegen/valatyperegisterfunction.vala index 750537500..c1811d949 100644 --- a/codegen/valatyperegisterfunction.vala +++ b/codegen/valatyperegisterfunction.vala @@ -213,7 +213,7 @@ public abstract class Vala.TypeRegisterFunction { type_init.add_statement (new CCodeExpressionStatement (add_class_private_call)); } - if (!plugin && cl != null && (cl.has_private_fields || cl.get_type_parameters ().size > 0)) { + if (cl != null && (cl.has_private_fields || cl.get_type_parameters ().size > 0)) { var ccall = new CCodeFunctionCall (new CCodeIdentifier ("g_type_add_instance_private")); ccall.add_argument (new CCodeIdentifier (type_id_name)); ccall.add_argument (new CCodeIdentifier ("sizeof (%sPrivate)".printf (get_ccode_name (cl))));