mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-12-15 21:08:29 +01:00
gio: use g_variant_builder_init_static()
All uses of g_variant_builder_init() in gio are safe to translate to the new g_variant_builder_init_static() alternative as the type will outlive the call to g_variant_builder_end() (or is already static in nature).
This commit is contained in:
committed by
Philip Withnall
parent
bfac590364
commit
0f95b18a7b
@@ -410,7 +410,7 @@ g_settings_set_mapping (const GValue *value,
|
||||
fclass = g_type_class_peek (G_VALUE_TYPE (value));
|
||||
flags = g_value_get_flags (value);
|
||||
|
||||
g_variant_builder_init (&builder, G_VARIANT_TYPE ("as"));
|
||||
g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("as"));
|
||||
while (flags)
|
||||
{
|
||||
flagsval = g_flags_get_first_value (fclass, flags);
|
||||
|
||||
Reference in New Issue
Block a user