summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-review.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2017-03-15 16:50:28 +0000
committerRichard Hughes <richard@hughsie.com>2017-03-15 16:51:50 +0000
commit48d22d2a6ee82d013252ff534af6e34913c710c9 (patch)
treec2e86bf6c38cf9839669694dc153829ebb45cea4 /libappstream-glib/as-review.c
parent0320abd7ea10e5576d98fd4bf5f16e43ae22a057 (diff)
downloadappstream-glib-48d22d2a6ee82d013252ff534af6e34913c710c9.tar.gz
Fix compile with -Wdiscarded-qualifiers
Some distros helpfully force this on for some reason.
Diffstat (limited to 'libappstream-glib/as-review.c')
-rw-r--r--libappstream-glib/as-review.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libappstream-glib/as-review.c b/libappstream-glib/as-review.c
index cbf0beb..97f1491 100644
--- a/libappstream-glib/as-review.c
+++ b/libappstream-glib/as-review.c
@@ -957,8 +957,8 @@ as_review_node_parse (AsReview *review, GNode *node,
AsRefString *value;
if (as_node_get_tag (c2) != AS_TAG_VALUE)
continue;
- key = as_node_get_attribute (c2, "key");
- value = as_node_get_data (c2);
+ key = as_node_get_attribute_as_refstr (c2, "key");
+ value = as_node_get_data_as_refstr (c2);
if (value == NULL) {
g_hash_table_insert (priv->metadata,
as_ref_string_ref (key),