Skip to content

Commit 9ca7e6c

Browse files
committed
Merge pull request #132 from Kjuly/master
Fix warning: Implicit conversion from enum type CFPropertyListMutabilityOptions to NSPropertyListReadOptions
2 parents 6ba6f08 + a253ae2 commit 9ca7e6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

FCModel/FCModel.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,11 +258,11 @@ - (id)unserializedRepresentationOfDatabaseValue:(id)databaseValue forPropertyNam
258258
return [databaseValue isKindOfClass:NSDate.class] ? databaseValue : [NSDate dateWithTimeIntervalSince1970:[databaseValue doubleValue]];
259259
} else if (propertyClass == NSDictionary.class) {
260260
if ([databaseValue isKindOfClass:NSDictionary.class]) return databaseValue;
261-
NSDictionary *dict = [NSPropertyListSerialization propertyListWithData:databaseValue options:kCFPropertyListImmutable format:NULL error:NULL];
261+
NSDictionary *dict = [NSPropertyListSerialization propertyListWithData:databaseValue options:NSPropertyListImmutable format:NULL error:NULL];
262262
return dict && [dict isKindOfClass:NSDictionary.class] ? dict : @{};
263263
} else if (propertyClass == NSArray.class) {
264264
if ([databaseValue isKindOfClass:NSArray.class]) return databaseValue;
265-
NSArray *array = [NSPropertyListSerialization propertyListWithData:databaseValue options:kCFPropertyListImmutable format:NULL error:NULL];
265+
NSArray *array = [NSPropertyListSerialization propertyListWithData:databaseValue options:NSPropertyListImmutable format:NULL error:NULL];
266266
return array && [array isKindOfClass:NSArray.class] ? array : @[];
267267
} else if (propertyClass == NSDecimalNumber.class) {
268268
return [databaseValue isKindOfClass:NSDecimalNumber.class] ? databaseValue : [NSDecimalNumber decimalNumberWithDecimal:[databaseValue decimalValue]];

0 commit comments

Comments
 (0)