mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-21 10:43:51 +00:00
[core] Switch to ankerl::unordered_dense
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -353,7 +353,8 @@ void LeaveLongestTypes(std::vector<generator::TypeStrings> & matchedTypes)
|
||||
{
|
||||
auto const isChargingStation = [](auto const & lhs, auto const & rhs)
|
||||
{
|
||||
return lhs.size() > 1 && rhs.size() > 1 && lhs.at(1) == "charging_station" && rhs.at(1) == "charging_station" && lhs.at(0) == "amenity" && rhs.at(0) == "amenity";
|
||||
return lhs.size() > 1 && rhs.size() > 1 && lhs.at(1) == "charging_station" && rhs.at(1) == "charging_station" &&
|
||||
lhs.at(0) == "amenity" && rhs.at(0) == "amenity";
|
||||
};
|
||||
|
||||
auto const equalPrefix = [](auto const & lhs, auto const & rhs)
|
||||
@@ -378,7 +379,7 @@ void LeaveLongestTypes(std::vector<generator::TypeStrings> & matchedTypes)
|
||||
{
|
||||
if (isChargingStation(lhs, rhs))
|
||||
return false;
|
||||
|
||||
|
||||
if (equalPrefix(lhs, rhs))
|
||||
{
|
||||
// Keep longest type only, so return equal is true.
|
||||
@@ -1096,8 +1097,8 @@ void PostprocessElement(OsmElement * p, FeatureBuilderParams & params)
|
||||
for (uint32_t type : params.m_types)
|
||||
{
|
||||
ftype::TruncValue(type, 1);
|
||||
if (type != types.Get(CachedTypes::WheelchairAny) && type != types.Get(CachedTypes::InternetAny)
|
||||
&& type != types.Get(CachedTypes::DisusedBusiness) && type != types.Get(CachedTypes::Building))
|
||||
if (type != types.Get(CachedTypes::WheelchairAny) && type != types.Get(CachedTypes::InternetAny) &&
|
||||
type != types.Get(CachedTypes::DisusedBusiness) && type != types.Get(CachedTypes::Building))
|
||||
{
|
||||
hasPoiType = true;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user