Skip to content

Commit

Permalink
Create mutable character set directly instead of making a mutable copy
Browse files Browse the repository at this point in the history
  • Loading branch information
eofster committed May 11, 2022
1 parent a2f9a0d commit 780011f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Telephone/AKSIPURIFormatter.m
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ - (BOOL)getObjectValue:(id *)anObject forString:(NSString *)string errorDescript

NSRange delimiterRange = [string rangeOfString:@" <" options:NSBackwardsSearch];

NSMutableCharacterSet *trimmingCharacterSet = [[NSCharacterSet whitespaceCharacterSet] mutableCopy];
NSMutableCharacterSet *trimmingCharacterSet = [NSMutableCharacterSet whitespaceCharacterSet];
[trimmingCharacterSet addCharactersInString:@"\""];
name = [[string substringToIndex:delimiterRange.location]
stringByTrimmingCharactersInSet:trimmingCharacterSet];
Expand Down

0 comments on commit 780011f

Please sign in to comment.