Explorar el Código

Coding style fixes

Felix Paul Kühne hace 12 años
padre
commit
ae4ee5d5c9

+ 0 - 3
AspenProject/VLCAboutViewController.m

@@ -18,9 +18,6 @@
 - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
 {
     self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
-    if (self) {
-        self.title = @"";
-    }
     return self;
 }
 

+ 6 - 3
AspenProject/VLCExternalDisplayController.m

@@ -14,15 +14,18 @@
 
 @implementation VLCExternalDisplayController
 
-- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
+{
     return NO;
 }
 
-- (BOOL)shouldAutorotate {
+- (BOOL)shouldAutorotate
+{
     return NO;
 }
 
-- (NSUInteger)supportedInterfaceOrientations {
+- (NSUInteger)supportedInterfaceOrientations
+{
     return ~UIInterfaceOrientationMaskAll;
 }
 

+ 1 - 2
AspenProject/VLCMovieViewController.m

@@ -124,9 +124,8 @@
 
 - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch
 {
-    if (touch.view != self.view) {
+    if (touch.view != self.view)
         return NO;
-    }
 
     return YES;
 }

+ 1 - 2
AspenProject/VLCPlaylistViewController.m

@@ -90,9 +90,8 @@
     static NSString *CellIdentifier = @"Cell";
 
     VLCPlaylistTableViewCell *cell = (VLCPlaylistTableViewCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
-    if (cell == nil) {
+    if (cell == nil)
         cell = [VLCPlaylistTableViewCell cellWithReuseIdentifier:CellIdentifier];
-    }
 
     MLFile *object = _foundMedia[indexPath.row];
     cell.titleLabel.text = object.title;