Skip to content

Commit c3b597e

Browse files
committed
Handful more SDK instances
1 parent 512a779 commit c3b597e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

stdlib/public/SDK/CoreAudio/CoreAudio.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ extension UnsafeMutableAudioBufferListPointer
163163
}
164164

165165
public subscript(bounds: Range<Int>)
166-
-> MutableRandomAccessSlice<UnsafeMutableAudioBufferListPointer> {
166+
-> Slice<UnsafeMutableAudioBufferListPointer> {
167167
get {
168-
return MutableRandomAccessSlice(base: self, bounds: bounds)
168+
return Slice(base: self, bounds: bounds)
169169
}
170170
set {
171171
_writeBackMutableSlice(&self, bounds: bounds, slice: newValue)

stdlib/public/SDK/Dispatch/Data.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ public struct DispatchData : RandomAccessCollection, _ObjectiveCBridgeable {
255255
return ptr!.load(fromByteOffset: index - offset, as: UInt8.self)
256256
}
257257

258-
public subscript(bounds: Range<Int>) -> RandomAccessSlice<DispatchData> {
259-
return RandomAccessSlice(base: self, bounds: bounds)
258+
public subscript(bounds: Range<Int>) -> Slice<DispatchData> {
259+
return Slice(base: self, bounds: bounds)
260260
}
261261

262262
/// Return a new copy of the data in a specified range.

stdlib/public/SDK/Foundation/IndexSet.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ public struct IndexSet : ReferenceConvertible, Equatable, BidirectionalCollectio
7979
return indexSetRange.lowerBound..<indexSetRange.upperBound
8080
}
8181

82-
public subscript(bounds: Range<Index>) -> BidirectionalSlice<RangeView> {
83-
return BidirectionalSlice(base: self, bounds: bounds)
82+
public subscript(bounds: Range<Index>) -> Slice<RangeView> {
83+
return Slice(base: self, bounds: bounds)
8484
}
8585

8686
public func index(after i: Index) -> Index {
@@ -237,8 +237,8 @@ public struct IndexSet : ReferenceConvertible, Equatable, BidirectionalCollectio
237237
return index.value
238238
}
239239

240-
public subscript(bounds: Range<Index>) -> BidirectionalSlice<IndexSet> {
241-
return BidirectionalSlice(base: self, bounds: bounds)
240+
public subscript(bounds: Range<Index>) -> Slice<IndexSet> {
241+
return Slice(base: self, bounds: bounds)
242242
}
243243

244244
// We adopt the default implementation of subscript(range: Range<Index>) from MutableCollection

0 commit comments

Comments
 (0)