resettable map and fixed page cursors also reset inner cursor

This commit is contained in:
Ivan Smolin 2017-04-24 14:11:36 +03:00
parent 1387f00744
commit bebef20e54
2 changed files with 2 additions and 2 deletions

View File

@ -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)
}
}

View File

@ -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)
}
}