Commits

dcutting committed 90a40a0

Fixes to work with old Xcode compiler.

  • Participants
  • Parent commits 449c9be

Comments (0)

Files changed (2)

VeriJSON/VeriJSON/VeriJSON.h

 
 extern NSString *VeriJSONErrorDomain;
 
-typedef NS_ENUM(NSInteger, VeriJSONErrorCode) {
+typedef enum {
     VeriJSONErrorCodeInvalidPattern
-};
+} VeriJSONErrorCode;
 
 @interface VeriJSON : NSObject
 

VeriJSON/VeriJSON/VeriJSON.m

 }
 
 - (NSURL *)urlFromValue:(id)value {
-    if (![value isKindOfClass:[NSString class]]) return NO;
+    if (![value isKindOfClass:[NSString class]]) return nil;
     NSString *trimmedValue = [value stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
-    if (0 == [trimmedValue length]) return NO;
+    if (0 == [trimmedValue length]) return nil;
     return [NSURL URLWithString:value];
 }