From 48d22d2a6ee82d013252ff534af6e34913c710c9 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Wed, 15 Mar 2017 16:50:28 +0000 Subject: Fix compile with -Wdiscarded-qualifiers Some distros helpfully force this on for some reason. --- libappstream-glib/as-review.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libappstream-glib/as-review.c') 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), -- cgit v1.2.1