[core] Switch to ankerl::unordered_dense

Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
x7z4w
2025-11-24 17:34:56 +00:00
parent 7e561d09d3
commit 0288b97b13
282 changed files with 4385 additions and 1457 deletions

View File

@@ -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;
}