resettable map and fixed page cursors also reset inner cursor
This commit is contained in:
parent
1387f00744
commit
bebef20e54
|
|
@ -102,7 +102,7 @@ public class ResettableFixedPageCursor<Cursor: ResettableCursorType>: FixedPageC
|
|||
}
|
||||
|
||||
public required init(initialFrom other: ResettableFixedPageCursor) {
|
||||
super.init(cursor: other.cursor, pageSize: other.pageSize)
|
||||
super.init(cursor: other.cursor.reset(), pageSize: other.pageSize)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ public class ResettableMapCursor<Cursor: ResettableCursorType, T>: MapCursor<Cur
|
|||
}
|
||||
|
||||
public required init(initialFrom other: ResettableMapCursor) {
|
||||
super.init(cursor: other.cursor, transform: other.transform)
|
||||
super.init(cursor: other.cursor.reset(), transform: other.transform)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue