diff options
author | Debarshi Ray <debarshir@gnome.org> | 2018-10-19 11:53:56 +0200 |
---|---|---|
committer | Debarshi Ray <debarshir@gnome.org> | 2018-10-19 12:00:39 +0200 |
commit | c406bfdf095f5d0dc860330e14b43b468c889afe (patch) | |
tree | 0347a3fff15be766b5397993ad60707d849d1b59 /lib | |
parent | 8f1bf4eaa283d1ceafa8131027acd9443f5ce998 (diff) | |
download | gnome-maps-c406bfdf095f5d0dc860330e14b43b468c889afe.tar.gz |
maps-osm-object: Simplify code
https://gitlab.gnome.org/GNOME/gnome-maps/merge_requests/15
Diffstat (limited to 'lib')
-rw-r--r-- | lib/maps-osm-object.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/maps-osm-object.c b/lib/maps-osm-object.c index 48de6b90..5a00f0c1 100644 --- a/lib/maps-osm-object.c +++ b/lib/maps-osm-object.c @@ -224,8 +224,8 @@ maps_osm_object_delete_tag (MapsOSMObject *object, const char *key) static void maps_osm_object_foreach_tag (gpointer key, gpointer value, gpointer user_data) { - const char *name = (const char *) key; - const char *val = (const char *) value; + const xmlChar *name = (const xmlChar *) key; + const xmlChar *val = (const xmlChar *) value; xmlNodePtr object_node = (xmlNodePtr) user_data; /* skip tag if it has an empty placeholder value */ @@ -234,8 +234,8 @@ maps_osm_object_foreach_tag (gpointer key, gpointer value, gpointer user_data) xmlNodePtr tag_node; tag_node = xmlNewNode (NULL, (xmlChar *) "tag"); - xmlNewProp (tag_node, (xmlChar *) "k", (xmlChar *) name); - xmlNewProp (tag_node, (xmlChar *) "v", (xmlChar *) val); + xmlNewProp (tag_node, (xmlChar *) "k", name); + xmlNewProp (tag_node, (xmlChar *) "v", val); xmlAddChild (object_node, tag_node); } } |