void MarkerList::setMarker (const String& name, const RelativeCoordinate& position) { if (Marker* const m = getMarkerByName (name)) { if (m->position != position) { m->position = position; markersHaveChanged(); } return; } markers.add (new Marker (name, position)); markersHaveChanged(); }
const MarkerList::Marker* MarkerList::getMarker (const String& name) const noexcept { return getMarkerByName (name); }