From: Rico Tzschichholz Date: Mon, 2 Apr 2018 19:41:31 +0000 (+0200) Subject: codegen: Use get_ccode_param_spec_function() X-Git-Tag: 0.41.90~201 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=037dd788691b8b4c5b4c6aae0680bb34ed2177ca;p=thirdparty%2Fvala.git codegen: Use get_ccode_param_spec_function() --- diff --git a/codegen/valagtypemodule.vala b/codegen/valagtypemodule.vala index 93f11da28..daad49cd1 100644 --- a/codegen/valagtypemodule.vala +++ b/codegen/valagtypemodule.vala @@ -111,9 +111,7 @@ public class Vala.GTypeModule : GErrorModule { decl_space.add_function_declaration (unref_fun); // GParamSpec and GValue functions - string function_name = get_ccode_lower_case_name (cl, "param_spec_"); - - var function = new CCodeFunction (function_name, "GParamSpec*"); + var function = new CCodeFunction (get_ccode_param_spec_function (cl), "GParamSpec*"); function.add_parameter (new CCodeParameter ("name", "const gchar*")); function.add_parameter (new CCodeParameter ("nick", "const gchar*")); function.add_parameter (new CCodeParameter ("blurb", "const gchar*")); @@ -993,9 +991,7 @@ public class Vala.GTypeModule : GErrorModule { } private void add_g_param_spec_type_function (Class cl) { - string function_name = get_ccode_lower_case_name (cl, "param_spec_"); - - var function = new CCodeFunction (function_name, "GParamSpec*"); + var function = new CCodeFunction (get_ccode_param_spec_function (cl), "GParamSpec*"); function.add_parameter (new CCodeParameter ("name", "const gchar*")); function.add_parameter (new CCodeParameter ("nick", "const gchar*")); function.add_parameter (new CCodeParameter ("blurb", "const gchar*"));