mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-25 07:13:53 +00:00
[core] Switch to ankerl::unordered_dense
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -665,7 +665,8 @@ void XMLFeature::SetOSMTagsForType(uint32_t type)
|
||||
// Main type is stored as "k=amenity v=restaurant"
|
||||
SetTagValue(k, *iter);
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
// Main type is stored as "k=building v=yes"
|
||||
SetTagValue(k, kYes);
|
||||
}
|
||||
@@ -847,10 +848,7 @@ XMLFeature ToXML(osm::EditableMapObject const & object, bool serializeType)
|
||||
toFeature.SetCuisine(cuisineStr);
|
||||
}
|
||||
|
||||
object.ForEachMetadataItem([&toFeature](string_view tag, string_view value)
|
||||
{
|
||||
toFeature.SetTagValue(tag, value);
|
||||
});
|
||||
object.ForEachMetadataItem([&toFeature](string_view tag, string_view value) { toFeature.SetTagValue(tag, value); });
|
||||
|
||||
return toFeature;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user