| 700 | } |
| 701 | |
| 702 | void SaveFeatureTypes(feature::TypesHolder const & types, kml::BookmarkData & bmData) |
| 703 | { |
| 704 | auto const & c = classif(); |
| 705 | feature::TypesHolder copy(types); |
| 706 | copy.SortBySpec(); |
| 707 | bmData.m_featureTypes.reserve(copy.Size()); |
| 708 | for (auto it = copy.begin(); it != copy.end(); ++it) |
| 709 | { |
| 710 | if (c.IsTypeValid(*it)) |
| 711 | { |
| 712 | bmData.m_featureTypes.push_back(c.GetIndexForType(*it)); |
| 713 | if (bmData.m_icon == kml::BookmarkIcon::None) |
| 714 | bmData.m_icon = GetBookmarkIconByFeatureType(*it); |
| 715 | } |
| 716 | } |
| 717 | } |
| 718 | |
| 719 | std::string GetPreferredBookmarkStr(kml::LocalizableString const & name) |
| 720 | { |
no test coverage detected