瀏覽代碼

micro-optimization

(cherry picked from commit eff3104df219bafa1222717e84a66586acbb320c)
Felix Paul Kühne 10 年之前
父節點
當前提交
f641f13069
共有 1 個文件被更改,包括 3 次插入3 次删除
  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;
 }