Commit 780daa97 authored by Florent Pillet's avatar Florent Pillet Committed by Felix Paul Kühne

VLCKit: nitpicking semantics

Use nil for objects, not NULL
Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 12c70cc1
......@@ -311,7 +311,7 @@ static void HandleMediaParsedChanged(const libvlc_event_t * event, void * self)
- (NSDictionary*) stats
{
if (!p_md)
return NULL;
return nil;
libvlc_media_stats_t p_stats;
libvlc_media_get_stats(p_md, &p_stats);
......@@ -645,7 +645,7 @@ NSString *const VLCMediaTracksInformationTextEncoding = @"encoding"; // NSString
- (NSString *)metadataForKey:(NSString *)key
{
if (!p_md)
return NULL;
return nil;
if (![self isParsed])
[self synchronousParse];
......@@ -653,7 +653,7 @@ NSString *const VLCMediaTracksInformationTextEncoding = @"encoding"; // NSString
char *returnValue = libvlc_media_get_meta(p_md, [VLCMedia stringToMetaType:key]);
if (!returnValue)
return NULL;
return nil;
NSString *actualReturnValue = @(returnValue);
free(returnValue);
......
......@@ -167,7 +167,7 @@ static void HandleMediaListItemDeleted( const libvlc_event_t * event, void * use
{
if (index < [cachedMedia count])
return cachedMedia[index];
return NULL;
return nil;
}
- (NSInteger)indexOfMedia:(VLCMedia *)media
......
......@@ -29,7 +29,7 @@
#include <vlc/libvlc.h>
static VLCServicesDiscoverer * sharedDiscoverer = NULL;
static VLCServicesDiscoverer * sharedDiscoverer = nil;
@implementation VLCServicesDiscoverer
+ (id)sharedDiscoverer
......
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