mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Eliminate most remaining uses of _convertNSFooToFoo and _convertFooToNSFoo.
Generalized bridging has fully subsumed most of these. NSError is still special, and _convertStringToNSString remains for the the runtime's implementation of SwiftObject's -description method.
This commit is contained in:
@@ -226,7 +226,7 @@ func nsArrayOfStrings() -> Array<NSString> {
|
||||
|
||||
return src.withUnsafeBufferPointer {
|
||||
let ns = NSArray(objects: UnsafePointer($0.baseAddress), count: $0.count)
|
||||
return _convertNSArrayToArray(ns)
|
||||
return ns as! [NSString]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user