gbinding: Use new g_value_set_interned_string() API for performance

The property strings are interned already, so this potentially allows for faster
comparisons. The property strings were already not copied, as they were tagged
as static.
This commit is contained in:
Edward Hervey 2020-05-19 11:14:51 +02:00 committed by Edward Hervey
parent 1a95ce84ed
commit 73d7f35ce7

View File

@ -540,7 +540,7 @@ g_binding_get_property (GObject *gobject,
case PROP_SOURCE_PROPERTY:
/* @source_property is interned, so we dont need to take a copy */
g_value_set_static_string (value, binding->source_property);
g_value_set_interned_string (value, binding->source_property);
break;
case PROP_TARGET:
@ -549,7 +549,7 @@ g_binding_get_property (GObject *gobject,
case PROP_TARGET_PROPERTY:
/* @target_property is interned, so we dont need to take a copy */
g_value_set_static_string (value, binding->target_property);
g_value_set_interned_string (value, binding->target_property);
break;
case PROP_FLAGS: