MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / MapPartUndoStep

Method MapPartUndoStep

src/undo/map_part_undo.cpp:47–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45namespace OpenOrienteering {
46
47MapPartUndoStep::MapPartUndoStep(Map* map, MapPartChange change, const MapPart* part)
48: UndoStep(UndoStep::MapPartUndoStepType, map)
49, change(change)
50, index(map->findPartIndex(part))
51, name(part->getName())
52{
53 // nothing else
54}
55
56MapPartUndoStep::MapPartUndoStep(Map* map, MapPartChange change, int index)
57: UndoStep(UndoStep::MapPartUndoStepType, map)

Callers

nothing calls this directly

Calls 2

findPartIndexMethod · 0.80
getPartMethod · 0.45

Tested by

no test coverage detected