VGM Decoder: Change logic of dictionary creation
Metadata logic code should be using this dictionaryWithDictionary method so that the resulting dictionary is actually immutable, like it claims to be, rather than simply casting it. Safety coding, all that jazz. Not really a major issue, just feels right. Signed-off-by: Christopher Snowhill <kode54@gmail.com>swiftingly
parent
8cf37cadf3
commit
872816f056
|
@ -187,7 +187,7 @@ static NSString *get_description_tag(const char *description, const char *tag, c
|
|||
if(![year isEqualToNumber:[NSNumber numberWithInt:0]])
|
||||
[mutableMetadata setValue:year forKey:@"year"];
|
||||
|
||||
NSDictionary *metadata = mutableMetadata;
|
||||
NSDictionary *metadata = [NSDictionary dictionaryWithDictionary:mutableMetadata];
|
||||
|
||||
NSDictionary *package = @{@"properties": properties,
|
||||
@"metadata": metadata};
|
||||
|
|
Loading…
Reference in New Issue