summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-review.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-11-17 19:40:08 +0000
committerRichard Hughes <richard@hughsie.com>2016-11-18 20:22:31 +0000
commitdd0fb09e8bbdaa8961caad2e5169bdda6b49b6d9 (patch)
tree3ade3b331eea6aa24409b974f72af714e4ad448a /libappstream-glib/as-review.c
parent9372be022bb7534063ee8ba541abb880e06980c5 (diff)
downloadappstream-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.c2
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),