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:
Doug Gregor
2016-03-18 10:31:30 -07:00
parent 4c49e67780
commit d92ae77076
11 changed files with 103 additions and 213 deletions

View File

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