summaryrefslogtreecommitdiff
path: root/codegen/valagtypemodule.vala
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2020-06-14 08:59:51 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2020-06-14 09:44:34 +0200
commit6e08f06c9faf8515f76c8079c80b328c0a030d40 (patch)
treed864da8164d8091900c25f889f06e5af7f763c93 /codegen/valagtypemodule.vala
parent485beb1f34bdba917dc035cd29fa871cf0ff9581 (diff)
downloadvala-6e08f06c9faf8515f76c8079c80b328c0a030d40.tar.gz
Consistently use get_ccode_lower_case_prefix() for function names
Create the expected name for "constructor" and "finalize" functions which are non-public API. Fixes https://gitlab.gnome.org/GNOME/vala/issues/1008
Diffstat (limited to 'codegen/valagtypemodule.vala')
-rw-r--r--codegen/valagtypemodule.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/codegen/valagtypemodule.vala b/codegen/valagtypemodule.vala
index 4e8c91702..4757b0165 100644
--- a/codegen/valagtypemodule.vala
+++ b/codegen/valagtypemodule.vala
@@ -1727,7 +1727,7 @@ public class Vala.GTypeModule : GErrorModule {
fundamental_class = fundamental_class.base_class;
}
- var func = new CCodeFunction ("%s_finalize".printf (get_ccode_lower_case_name (cl, null)));
+ var func = new CCodeFunction ("%sfinalize".printf (get_ccode_lower_case_prefix (cl)));
func.add_parameter (new CCodeParameter ("obj", "%s *".printf (get_ccode_name (fundamental_class))));
func.modifiers = CCodeModifiers.STATIC;