diff options
author | Richard Hughes <richard@hughsie.com> | 2016-11-17 19:40:08 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2016-11-18 20:22:31 +0000 |
commit | dd0fb09e8bbdaa8961caad2e5169bdda6b49b6d9 (patch) | |
tree | 3ade3b331eea6aa24409b974f72af714e4ad448a /libappstream-glib/as-review.c | |
parent | 9372be022bb7534063ee8ba541abb880e06980c5 (diff) | |
download | appstream-glib-dd0fb09e8bbdaa8961caad2e5169bdda6b49b6d9.tar.gz |
trivial: Add as_ref_string_new_static()
This reduces the number of common duplicate strings like 'C'.
Diffstat (limited to 'libappstream-glib/as-review.c')
-rw-r--r-- | libappstream-glib/as-review.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libappstream-glib/as-review.c b/libappstream-glib/as-review.c index 4a1c5c9..fec2500 100644 --- a/libappstream-glib/as-review.c +++ b/libappstream-glib/as-review.c @@ -963,7 +963,7 @@ as_review_node_parse (AsReview *review, GNode *node, if (value == NULL) { g_hash_table_insert (priv->metadata, as_ref_string_ref (key), - as_ref_string_new ("")); + as_ref_string_new_static ("")); } else { g_hash_table_insert (priv->metadata, as_ref_string_ref (key), |