@@ -61,11 +61,11 @@ extension NetworkStatusDelegate where Self: UIViewController {
6161
6262 fileprivate var receiver : ReachabilityNotificationObserver ? {
6363 get {
64- return objc_getAssociatedObject ( self , & NetworkStatusAssociatedKeys. associatedObjectKey) as? ReachabilityNotificationObserver
64+ return objc_getAssociatedObject ( self , NetworkStatusAssociatedKeys . associatedObjectKey) as? ReachabilityNotificationObserver
6565 }
6666
6767 set {
68- objc_setAssociatedObject ( self , & NetworkStatusAssociatedKeys. associatedObjectKey, newValue, . OBJC_ASSOCIATION_RETAIN)
68+ objc_setAssociatedObject ( self , NetworkStatusAssociatedKeys . associatedObjectKey, newValue, . OBJC_ASSOCIATION_RETAIN)
6969 }
7070 }
7171}
@@ -80,17 +80,17 @@ extension NetworkStatusDelegate where Self: NetworkStatusReceiver {
8080
8181 fileprivate var receiver : ReachabilityNotificationObserver ? {
8282 get {
83- return objc_getAssociatedObject ( self , & NetworkStatusAssociatedKeys. associatedObjectKey) as? ReachabilityNotificationObserver
83+ return objc_getAssociatedObject ( self , NetworkStatusAssociatedKeys . associatedObjectKey) as? ReachabilityNotificationObserver
8484 }
8585
8686 set {
87- objc_setAssociatedObject ( self , & NetworkStatusAssociatedKeys. associatedObjectKey, newValue, . OBJC_ASSOCIATION_RETAIN)
87+ objc_setAssociatedObject ( self , NetworkStatusAssociatedKeys . associatedObjectKey, newValue, . OBJC_ASSOCIATION_RETAIN)
8888 }
8989 }
9090}
9191
9292fileprivate struct NetworkStatusAssociatedKeys {
93- static var associatedObjectKey = " org.wordpress.networkstatus.notificationreceiver "
93+ static let associatedObjectKey = malloc ( 1 ) !
9494}
9595
9696fileprivate final class ReachabilityNotificationObserver : NSObject {
0 commit comments