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

Method getModifiedObjects

src/undo/object_undo.cpp:88–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void ObjectModifyingUndoStep::getModifiedObjects(int part_index, ObjectSet& out) const
89{
90 if (part_index == getPartIndex())
91 {
92 MapPart* const map_part = map->getPart(part_index);
93 for (int object_index : modified_objects)
94 {
95 Q_ASSERT(object_index >= 0 && object_index < map_part->getNumObjects());
96 out.insert(map_part->getObject(object_index));
97 }
98 }
99}
100
101
102

Callers

nothing calls this directly

Calls 6

getObjectMethod · 0.80
getPartMethod · 0.45
getNumObjectsMethod · 0.45
insertMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected