diff --git a/aat-lib/src/main/java/ch/bailu/aat_lib/gpx/GpxListIterator.kt b/aat-lib/src/main/java/ch/bailu/aat_lib/gpx/GpxListIterator.kt index 89c8a2edd..b62e53213 100644 --- a/aat-lib/src/main/java/ch/bailu/aat_lib/gpx/GpxListIterator.kt +++ b/aat-lib/src/main/java/ch/bailu/aat_lib/gpx/GpxListIterator.kt @@ -6,11 +6,15 @@ import ch.bailu.aat_lib.gpx.segmented_list.SegmentNode class GpxListIterator(private val track: GpxList) { private inner class PointPrimerNode : GpxPointFirstNode(GpxPoint.NULL, GpxAttributesNull.NULL) { - override var next = track.pointList.first + override var next: Node? + get() = track.pointList.first + set(_) {} } private inner class SegmentPrimerNode : GpxSegmentNode(PointPrimerNode()) { - override var next = track.segmentList.first + override var next: Node? + get() = track.segmentList.first + set(_) {} } private var point: GpxPointNode = PointPrimerNode()