| 23 | namespace osm |
| 24 | { |
| 25 | NewFeatureCategories::NewFeatureCategories(editor::EditorConfig const & config) |
| 26 | { |
| 27 | auto const & c = classif(); |
| 28 | for (auto const & clType : config.GetTypesThatCanBeAdded()) |
| 29 | { |
| 30 | uint32_t const type = c.GetTypeByReadableObjectName(clType); |
| 31 | if (type == 0) |
| 32 | { |
| 33 | LOG(LWARNING, ("Unknown type in Editor's config:", clType)); |
| 34 | continue; |
| 35 | } |
| 36 | m_types.emplace_back(clType); |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | NewFeatureCategories::NewFeatureCategories(NewFeatureCategories && other) noexcept |
| 41 | : m_types(std::move(other.m_types)) |
nothing calls this directly
no test coverage detected