Skip to content

Commit

Permalink
Removing use of NSString’s -description in the NSString (RequestUtils…
Browse files Browse the repository at this point in the history
…) category.
  • Loading branch information
Jan Weiß committed Jul 14, 2015
1 parent 4878db1 commit 6ba70cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RequestUtils/RequestUtils.m
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ @implementation NSString (RequestUtils)
- (NSString *)URLEncodedString
{
CFStringRef encoded = CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault,
(__bridge CFStringRef)[self description],
(__bridge CFStringRef)self,
NULL,
CFSTR("!*'\"();:@&=+$,/?%#[]% "),
kCFStringEncodingUTF8);
Expand All @@ -70,7 +70,7 @@ - (NSString *)URLEncodedString

- (NSString *)URLDecodedString:(BOOL)decodePlusAsSpace
{
NSString *string = [self description];
NSString *string = self;
if (decodePlusAsSpace)
{
string = [string stringByReplacingOccurrencesOfString:@"+" withString:@" "];
Expand Down

0 comments on commit 6ba70cd

Please sign in to comment.