Browse Source

micro-optimization

(cherry picked from commit eff3104df219bafa1222717e84a66586acbb320c)
Felix Paul Kühne 10 years ago
parent
commit
f641f13069
1 changed files with 3 additions and 3 deletions
  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;
 }