mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-30 14:21:49 +02:00
reverted unsafeDowncast usage to unsafeBitCast (It worked differently)
This commit is contained in:
@@ -677,7 +677,7 @@ public final class ListMonitor<T: NSManagedObject>: Hashable {
|
|||||||
|
|
||||||
internal func downcast() -> ListMonitor<NSManagedObject> {
|
internal func downcast() -> ListMonitor<NSManagedObject> {
|
||||||
|
|
||||||
return unsafeDowncast(self, to: ListMonitor<NSManagedObject>.self)
|
return unsafeBitCast(self, to: ListMonitor<NSManagedObject>.self)
|
||||||
}
|
}
|
||||||
|
|
||||||
internal func registerChangeNotification(_ notificationKey: UnsafeRawPointer, name: Notification.Name, toObserver observer: AnyObject, callback: @escaping (_ monitor: ListMonitor<T>) -> Void) {
|
internal func registerChangeNotification(_ notificationKey: UnsafeRawPointer, name: Notification.Name, toObserver observer: AnyObject, callback: @escaping (_ monitor: ListMonitor<T>) -> Void) {
|
||||||
|
|||||||
@@ -212,7 +212,7 @@ public final class ObjectMonitor<EntityType: NSManagedObject>: Equatable {
|
|||||||
|
|
||||||
internal func downcast() -> ObjectMonitor<NSManagedObject> {
|
internal func downcast() -> ObjectMonitor<NSManagedObject> {
|
||||||
|
|
||||||
return unsafeDowncast(self, to: ObjectMonitor<NSManagedObject>.self)
|
return unsafeBitCast(self, to: ObjectMonitor<NSManagedObject>.self)
|
||||||
}
|
}
|
||||||
|
|
||||||
deinit {
|
deinit {
|
||||||
|
|||||||
Reference in New Issue
Block a user