Bladeren bron

fix some more warning

Tobias Conradi 10 jaren geleden
bovenliggende
commit
49bee8363d

+ 1 - 1
Sources/VLCCloudStorageController.h

@@ -28,7 +28,7 @@
 @property (nonatomic, readwrite) BOOL isAuthorized;
 @property (nonatomic, readonly) NSArray *currentListFiles;
 
-+ (VLCCloudStorageController *)sharedInstance;
++ (instancetype)sharedInstance;
 
 - (void)startSession;
 - (void)logout;

+ 1 - 1
Sources/VLCGoogleDriveController.m

@@ -39,7 +39,7 @@
 
 #pragma mark - session handling
 
-+ (VLCCloudStorageController *)sharedInstance
++ (instancetype)sharedInstance
 {
     static VLCGoogleDriveController *sharedInstance = nil;
     static dispatch_once_t pred;

+ 2 - 2
Sources/VLCMovieViewController.m

@@ -1180,7 +1180,7 @@ currentMediaHasTrackToChooseFrom:(BOOL)currentMediaHasTrackToChooseFrom
         if (mediaPlayer.audioTrackIndexes.count > 2 && section == 0) {
             indexArray = mediaPlayer.audioTrackIndexes;
 
-            if ([indexArray indexOfObjectIdenticalTo:[NSNumber numberWithInt:mediaPlayer.currentAudioTrackIndex]] == row)
+            if ([indexArray indexOfObjectIdenticalTo:[NSNumber numberWithUnsignedInteger:mediaPlayer.currentAudioTrackIndex]] == row)
                 [cell setShowsCurrentTrack:YES];
             else
                 [cell setShowsCurrentTrack:NO];
@@ -1189,7 +1189,7 @@ currentMediaHasTrackToChooseFrom:(BOOL)currentMediaHasTrackToChooseFrom
         } else {
             indexArray = mediaPlayer.videoSubTitlesIndexes;
 
-            if ([indexArray indexOfObjectIdenticalTo:[NSNumber numberWithInt:mediaPlayer.currentVideoSubTitleIndex]] == row)
+            if ([indexArray indexOfObjectIdenticalTo:[NSNumber numberWithUnsignedInteger:mediaPlayer.currentVideoSubTitleIndex]] == row)
                 [cell setShowsCurrentTrack:YES];
             else
                 [cell setShowsCurrentTrack:NO];

+ 1 - 1
Sources/VLCPlaylistViewController.m

@@ -753,7 +753,7 @@ static NSString *kDisplayedFirstSteps = @"Did we display the first steps tutoria
 - (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath
 {
     if (SYSTEM_RUNS_IOS7_OR_LATER) {
-        if (UIDeviceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation))
+        if (UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation))
             return CGSizeMake(341., 190.);
         else
             return CGSizeMake(384., 216.);