mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-05 12:13:54 +00:00
[core] Switch to ankerl::unordered_dense
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -60,15 +60,17 @@ void CaptionDescription::Init(FeatureType & f, int8_t deviceLang, int zoomLevel,
|
||||
f.GetReadableName(true /* allowTranslit */, deviceLang, out);
|
||||
}
|
||||
m_mainText = out.GetPrimary();
|
||||
|
||||
if (ftypes::IsPublicTransportStopChecker::Instance()(feature::TypesHolder(f))) {
|
||||
|
||||
if (ftypes::IsPublicTransportStopChecker::Instance()(feature::TypesHolder(f)))
|
||||
{
|
||||
auto const lRef = f.GetMetadata(feature::Metadata::FMD_LOCAL_REF);
|
||||
if (!m_mainText.empty() && !lRef.empty()) {
|
||||
//m_mainText.append(" (").append(lRef).append(")");
|
||||
if (!m_mainText.empty() && !lRef.empty())
|
||||
{
|
||||
// m_mainText.append(" (").append(lRef).append(")");
|
||||
m_auxText = lRef;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
ASSERT(m_auxText.empty() || !m_mainText.empty(), ("auxText without mainText"));
|
||||
|
||||
uint8_t constexpr kLongCaptionsMaxZoom = 4;
|
||||
|
||||
Reference in New Issue
Block a user