[gtk/matthiasc/for-master] builder: Avoid a pointless call
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master] builder: Avoid a pointless call
- Date: Mon, 20 Sep 2021 02:13:23 +0000 (UTC)
commit 5c3bb42612cc7cdc0399dd92fe71ab25e816da21
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Sep 19 22:13:00 2021 -0400
builder: Avoid a pointless call
pspec->name is guaranteed to be interned already.
gtk/gtkbuilder.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkbuilder.c b/gtk/gtkbuilder.c
index 7d357ce050..5487fa86db 100644
--- a/gtk/gtkbuilder.c
+++ b/gtk/gtkbuilder.c
@@ -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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]