[gtk/wip/baedert/for-master: 27/27] builder: Use default size of 8 for the ObjectProperty arrays
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 27/27] builder: Use default size of 8 for the ObjectProperty arrays
- Date: Fri, 12 Jun 2020 03:52:07 +0000 (UTC)
commit f31819f8456fee44bf1d10e71d479013c98ec1a4
Author: Timm Bäder <mail baedert org>
Date: Thu Jun 11 15:30:34 2020 +0200
builder: Use default size of 8 for the ObjectProperty arrays
gtk/gtkbuilder.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkbuilder.c b/gtk/gtkbuilder.c
index 5caef27bf6..d14b618c5f 100644
--- a/gtk/gtkbuilder.c
+++ b/gtk/gtkbuilder.c
@@ -481,11 +481,11 @@ object_properties_add (ObjectProperties *self,
const GValue *value)
{
if (!self->names)
- self->names = g_ptr_array_new ();
+ self->names = g_ptr_array_sized_new (8);
if (!self->values)
{
- self->values = g_array_new (FALSE, FALSE, sizeof (GValue));
+ self->values = g_array_sized_new (FALSE, FALSE, sizeof (GValue), 8);
g_array_set_clear_func (self->values, (GDestroyNotify) g_value_unset);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]