]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codegen: Rename to CCodeMethodCallModule.generate_enum_to_string_function()
authorRico Tzschichholz <ricotz@ubuntu.com>
Sat, 23 Feb 2019 19:19:31 +0000 (20:19 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 23 Feb 2019 19:19:31 +0000 (20:19 +0100)
codegen/valaccodemethodcallmodule.vala

index aa06395ed555ee46653f2a35574e391efe5b7941..3d4d67640194915d2c0836f042c3e4047adb8a64 100644 (file)
@@ -52,7 +52,7 @@ public class Vala.CCodeMethodCallModule : CCodeAssignmentModule {
                        if (ma.inner != null && ma.inner.value_type is EnumValueType && ((EnumValueType) ma.inner.value_type).get_to_string_method() == m) {
                                // Enum.VALUE.to_string()
                                var en = (Enum) ma.inner.value_type.data_type;
-                               ccall.call = new CCodeIdentifier (generate_enum_tostring_function (en));
+                               ccall.call = new CCodeIdentifier (generate_enum_to_string_function (en));
                        } else if (context.profile == Profile.POSIX && ma.inner != null && ma.inner.value_type != null && ma.inner.value_type.data_type == string_type.data_type && ma.member_name == "printf") {
                                ccall.call = new CCodeIdentifier (generate_string_printf_function ());
                        } else if (expr.is_constructv_chainup) {
@@ -887,7 +887,7 @@ public class Vala.CCodeMethodCallModule : CCodeAssignmentModule {
                }
        }
 
-       private string generate_enum_tostring_function (Enum en) {
+       private string generate_enum_to_string_function (Enum en) {
                var to_string_func = "_%s_to_string".printf (get_ccode_lower_case_name (en));
 
                if (!add_wrapper (to_string_func)) {