gnome: use g_intern_static_string() for enum/flags type names

We are emitting a static string, so use that shortcut function to
intern it, which will save one allocation.
pull/5028/head
Federico Mena Quintero 5 years ago committed by Jussi Pakkanen
parent 79d530e325
commit 60f34a1f51
  1. 2
      mesonbuild/modules/gnome.py

@ -1415,7 +1415,7 @@ GType
c_file_kwargs['vtail'] = ''' { 0, NULL, NULL }
};
if (g_once_init_enter (&gtype_id)) {
GType new_type = g_@type@_register_static ("@EnumName@", values);
GType new_type = g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);
g_once_init_leave (&gtype_id, new_type);
}
return (GType) gtype_id;

Loading…
Cancel
Save