Commit af50130a authored by Romain Goyet's avatar Romain Goyet Committed by Jean-Baptiste Kempf

Always use initWithNibName:nil whenever possible

Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 6ef6e06c
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
- (VLCDropboxTableViewController *)dropboxTableViewController - (VLCDropboxTableViewController *)dropboxTableViewController
{ {
if (_dropboxTableViewController == nil) { if (_dropboxTableViewController == nil) {
_dropboxTableViewController = [[VLCDropboxTableViewController alloc] initWithNibName:@"VLCDropboxTableViewController" bundle:nil]; _dropboxTableViewController = [[VLCDropboxTableViewController alloc] initWithNibName:nil bundle:nil];
} }
return _dropboxTableViewController; return _dropboxTableViewController;
......
...@@ -201,7 +201,7 @@ ...@@ -201,7 +201,7 @@
{ {
MLFile *mediaObject = _foundMedia[indexPath.row]; MLFile *mediaObject = _foundMedia[indexPath.row];
if (!self.movieViewController) if (!self.movieViewController)
self.movieViewController = [[VLCMovieViewController alloc] initWithNibName:@"VLCMovieViewController" bundle:nil]; self.movieViewController = [[VLCMovieViewController alloc] initWithNibName:nil bundle:nil];
self.movieViewController.mediaItem = mediaObject; self.movieViewController.mediaItem = mediaObject;
[self.navigationController pushViewController:self.movieViewController animated:YES]; [self.navigationController pushViewController:self.movieViewController animated:YES];
...@@ -240,7 +240,7 @@ ...@@ -240,7 +240,7 @@
MLFile *mediaObject = _foundMedia[index]; MLFile *mediaObject = _foundMedia[index];
if (!self.movieViewController) if (!self.movieViewController)
self.movieViewController = [[VLCMovieViewController alloc] initWithNibName:@"VLCMovieViewController" bundle:nil]; self.movieViewController = [[VLCMovieViewController alloc] initWithNibName:nil bundle:nil];
self.movieViewController.mediaItem = mediaObject; self.movieViewController.mediaItem = mediaObject;
[self.navigationController pushViewController:self.movieViewController animated:YES]; [self.navigationController pushViewController:self.movieViewController animated:YES];
...@@ -324,7 +324,7 @@ ...@@ -324,7 +324,7 @@
- (void)openMovieFromURL:(NSURL *)url - (void)openMovieFromURL:(NSURL *)url
{ {
if (!self.movieViewController) if (!self.movieViewController)
self.movieViewController = [[VLCMovieViewController alloc] initWithNibName:@"VLCMovieViewController" bundle:nil]; self.movieViewController = [[VLCMovieViewController alloc] initWithNibName:nil bundle:nil];
self.movieViewController.url = url; self.movieViewController.url = url;
[self.navigationController pushViewController:self.movieViewController animated:YES]; [self.navigationController pushViewController:self.movieViewController animated:YES];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment