Skip to content

Commit 8fd6eef

Browse files
committed
Replacing (CFStringRef)NSRunLoopCommonModes with kCFRunLoopCommonModes
1 parent 8916a10 commit 8fd6eef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

AFNetworking/AFHTTPClient.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,12 +379,12 @@ - (void)startMonitoringNetworkReachability {
379379
});
380380
}
381381

382-
SCNetworkReachabilityScheduleWithRunLoop(self.networkReachability, CFRunLoopGetMain(), (CFStringRef)NSRunLoopCommonModes);
382+
SCNetworkReachabilityScheduleWithRunLoop(self.networkReachability, CFRunLoopGetMain(), kCFRunLoopCommonModes);
383383
}
384384

385385
- (void)stopMonitoringNetworkReachability {
386386
if (self.networkReachability) {
387-
SCNetworkReachabilityUnscheduleFromRunLoop(self.networkReachability, CFRunLoopGetMain(), (CFStringRef)NSRunLoopCommonModes);
387+
SCNetworkReachabilityUnscheduleFromRunLoop(self.networkReachability, CFRunLoopGetMain(), kCFRunLoopCommonModes);
388388

389389
CFRelease(_networkReachability);
390390
_networkReachability = NULL;

0 commit comments

Comments
 (0)