Pārlūkot izejas kodu

micro-optimization

(cherry picked from commit eff3104df219bafa1222717e84a66586acbb320c)
Felix Paul Kühne 10 gadi atpakaļ
vecāks
revīzija
f641f13069
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      Sources/VLCAppDelegate.m

+ 3 - 3
Sources/VLCAppDelegate.m

@@ -167,9 +167,9 @@ NSString *const VLCDropboxSessionWasAuthorized = @"VLCDropboxSessionWasAuthorize
         setupBlock();
     }
 
-    [[VLCNotificationRelay sharedRelay] addRelayLocalName:NSManagedObjectContextDidSaveNotification toRemoteName:@"org.videolan.ios-app.dbupdate"];
-
-    [[VLCNotificationRelay sharedRelay] addRelayLocalName:VLCPlaybackControllerPlaybackMetadataDidChange toRemoteName:kVLCDarwinNotificationNowPlayingInfoUpdate];
+    VLCNotificationRelay *notificationRelay = [VLCNotificationRelay sharedRelay];
+    [notificationRelay addRelayLocalName:NSManagedObjectContextDidSaveNotification toRemoteName:@"org.videolan.ios-app.dbupdate"];
+    [notificationRelay addRelayLocalName:VLCPlaybackControllerPlaybackMetadataDidChange toRemoteName:kVLCDarwinNotificationNowPlayingInfoUpdate];
 
     return YES;
 }