summaryrefslogtreecommitdiff
path: root/gcr/gcr-pkcs11-certificate.c
diff options
context:
space:
mode:
authorNiels De Graef <nielsdegraef@gmail.com>2019-05-24 22:36:13 +0200
committerNiels De Graef <nielsdegraef@gmail.com>2020-01-04 01:18:12 +0000
commit9a0d041901490d7d90db6b9efb98e78b67d0ebcd (patch)
tree12249afdf6e0342a1d05ba60190690eb19699b92 /gcr/gcr-pkcs11-certificate.c
parent61e5318d8610e67d42fab83764316fefc09705e5 (diff)
downloadgcr-9a0d041901490d7d90db6b9efb98e78b67d0ebcd.tar.gz
gcr: Use G_PARAM_STATIC_STRINGS
This prevents some unnecessary string copies, resulting in less memory used and some unnecessary performance overhead being removed. Well, a little bit at least.
Diffstat (limited to 'gcr/gcr-pkcs11-certificate.c')
-rw-r--r--gcr/gcr-pkcs11-certificate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcr/gcr-pkcs11-certificate.c b/gcr/gcr-pkcs11-certificate.c
index efd1de8..ce55a18 100644
--- a/gcr/gcr-pkcs11-certificate.c
+++ b/gcr/gcr-pkcs11-certificate.c
@@ -287,7 +287,8 @@ gcr_pkcs11_certificate_class_init (GcrPkcs11CertificateClass *klass)
*/
g_object_class_install_property (gobject_class, PROP_ATTRIBUTES,
g_param_spec_boxed ("attributes", "Attributes", "The data displayed in the renderer",
- GCK_TYPE_ATTRIBUTES, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+ GCK_TYPE_ATTRIBUTES,
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
gcr_certificate_mixin_class_init (gobject_class);
_gcr_initialize_library ();