Skip to content

Commit dc4fa2d

Browse files
committed
Rename remaining CF*Ref types to CF*
1 parent 76b5af2 commit dc4fa2d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Foundation/NSCalendar.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,19 +250,19 @@ public class NSCalendar : NSObject, NSCopying, NSSecureCoding {
250250

251251
// Methods to return component name strings localized to the calendar's locale
252252

253-
private func _symbols(key: CFStringRef) -> [String] {
253+
private func _symbols(key: CFString) -> [String] {
254254
let dateFormatter = CFDateFormatterCreate(kCFAllocatorSystemDefault, locale?._cfObject, kCFDateFormatterNoStyle, kCFDateFormatterNoStyle)
255255
CFDateFormatterSetProperty(dateFormatter, kCFDateFormatterCalendarKey, _cfObject)
256-
let result = (CFDateFormatterCopyProperty(dateFormatter, key) as! CFArrayRef)._swiftObject
256+
let result = (CFDateFormatterCopyProperty(dateFormatter, key) as! CFArray)._swiftObject
257257
return result.map {
258258
return ($0 as! NSString)._swiftObject
259259
}
260260
}
261261

262-
private func _symbol(key: CFStringRef) -> String {
262+
private func _symbol(key: CFString) -> String {
263263
let dateFormatter = CFDateFormatterCreate(kCFAllocatorSystemDefault, locale?._cfObject, kCFDateFormatterNoStyle, kCFDateFormatterNoStyle)
264264
CFDateFormatterSetProperty(dateFormatter, kCFDateFormatterCalendarKey, self._cfObject)
265-
return (CFDateFormatterCopyProperty(dateFormatter, key) as! CFStringRef)._swiftObject
265+
return (CFDateFormatterCopyProperty(dateFormatter, key) as! CFString)._swiftObject
266266
}
267267

268268
public var eraSymbols: [String] {

Foundation/NSRegularExpression.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public class NSRegularExpression : NSObject, NSCopying, NSCoding {
4848
*/
4949

5050
public init(pattern: String, options: NSRegularExpressionOptions) throws {
51-
var error: Unmanaged<CFErrorRef>?
51+
var error: Unmanaged<CFError>?
5252
#if os(OSX) || os(iOS)
5353
let opt = _CFRegularExpressionOptions(rawValue: options.rawValue)
5454
#else

0 commit comments

Comments
 (0)