builder: Avoid a pointless call
authorMatthias Clasen <mclasen@redhat.com>
Mon, 20 Sep 2021 02:13:00 +0000 (22:13 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 20 Sep 2021 02:13:00 +0000 (22:13 -0400)
pspec->name is guaranteed to be interned already.

gtk/gtkbuilder.c

index 7d357ce050d36e1bc9820303966c913400ca6d56..5487fa86dbf3cca2700c49d1d9a27677df9148ee 100644 (file)
@@ -546,7 +546,7 @@ gtk_builder_get_parameters (GtkBuilder         *builder,
   for (guint i = 0; i < properties->len; i++)
     {
       PropertyInfo *prop = g_ptr_array_index (properties, i);
-      const char *property_name = g_intern_string (prop->pspec->name);
+      const char *property_name = prop->pspec->name;
       GValue property_value = G_VALUE_INIT;
 
       if (prop->value)