MCPcopy Create free account
hub / github.com/comaps/comaps / MarkAsDisused

Method MarkAsDisused

libs/indexer/editable_map_object.cpp:736–744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

734}
735
736void EditableMapObject::MarkAsDisused()
737{
738 auto types = GetTypes();
739 types.SortBySpec();
740 uint32_t old_type = *types.begin();
741 uint32_t new_type = classif().GetTypeByReadableObjectName("disusedbusiness");
742 ApplyBusinessReplacement(new_type);
743 m_journal.AddBusinessReplacement(old_type, new_type);
744}
745
746void EditableMapObject::ClearJournal()
747{

Callers 1

MarkPlaceAsDisusedMethod · 0.80

Calls 5

GetTypesFunction · 0.85
SortBySpecMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected