| 1098 | } |
| 1099 | |
| 1100 | FeatureID Editor::GetFeatureIdByXmlFeature(FeaturesContainer const & features, XMLFeature const & xml, |
| 1101 | MwmId const & mwmId, FeatureStatus status, bool needMigrate) const |
| 1102 | { |
| 1103 | ForEachFeaturesNearByFn forEach = [this](FeatureTypeFn && fn, m2::PointD const & point) |
| 1104 | { return ForEachFeatureAtPoint(std::move(fn), point); }; |
| 1105 | |
| 1106 | // TODO(mgsergio): Deleted features are not properly handled yet. |
| 1107 | if (needMigrate) |
| 1108 | { |
| 1109 | return editor::MigrateFeatureIndex(forEach, xml, status, |
| 1110 | [this, &mwmId, &features] { return GenerateNewFeatureId(features, mwmId); }); |
| 1111 | } |
| 1112 | |
| 1113 | return {mwmId, xml.GetMWMFeatureIndex()}; |
| 1114 | } |
| 1115 | |
| 1116 | void Editor::LoadMwmEdits(FeaturesContainer & loadedFeatures, xml_node const & mwm, MwmId const & mwmId, |
| 1117 | bool needMigrate) |
nothing calls this directly
no test coverage detected